shortcut_mapping_pref_delegate.h 906 B

1234567891011121314151617181920212223242526272829303132
  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 UI_BASE_SHORTCUT_MAPPING_PREF_DELEGATE_H_
  5. #define UI_BASE_SHORTCUT_MAPPING_PREF_DELEGATE_H_
  6. #include "base/component_export.h"
  7. namespace ui {
  8. // TODO(crbug/1264581): Remove this class once kDeviceI18nShortcutsEnabled
  9. // policy is deprecated.
  10. class COMPONENT_EXPORT(UI_BASE_FEATURES) ShortcutMappingPrefDelegate {
  11. public:
  12. static ShortcutMappingPrefDelegate* GetInstance();
  13. static bool IsInitialized();
  14. ShortcutMappingPrefDelegate();
  15. virtual ~ShortcutMappingPrefDelegate();
  16. virtual bool IsDeviceEnterpriseManaged() const = 0;
  17. virtual bool IsI18nShortcutPrefEnabled() const = 0;
  18. private:
  19. static ShortcutMappingPrefDelegate* instance_;
  20. };
  21. } // namespace ui
  22. #endif // UI_BASE_SHORTCUT_MAPPING_PREF_DELEGATE_H_