features.h 1006 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_APP_RESTORE_FEATURES_H_
  5. #define COMPONENTS_APP_RESTORE_FEATURES_H_
  6. #include "base/component_export.h"
  7. #include "base/feature_list.h"
  8. namespace full_restore {
  9. namespace features {
  10. // Enables the window state and bounds predictor and full ghost window for ARC++
  11. // apps.
  12. COMPONENT_EXPORT(APP_RESTORE) extern const base::Feature kArcWindowPredictor;
  13. // Enables the full restore for Lacros feature. If this is enabled, we will
  14. // restore apps and app windows opened with Lacros after a crash or reboot.
  15. COMPONENT_EXPORT(APP_RESTORE) extern const base::Feature kFullRestoreForLacros;
  16. COMPONENT_EXPORT(APP_RESTORE) bool IsArcWindowPredictorEnabled();
  17. COMPONENT_EXPORT(APP_RESTORE) bool IsFullRestoreForLacrosEnabled();
  18. } // namespace features
  19. } // namespace full_restore
  20. #endif // COMPONENTS_APP_RESTORE_FEATURES_H_