locale_feature_pod_controller.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright 2018 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 ASH_SYSTEM_LOCALE_LOCALE_FEATURE_POD_CONTROLLER_H_
  5. #define ASH_SYSTEM_LOCALE_LOCALE_FEATURE_POD_CONTROLLER_H_
  6. #include "ash/ash_export.h"
  7. #include "ash/system/unified/feature_pod_controller_base.h"
  8. namespace ash {
  9. class UnifiedSystemTrayController;
  10. // Controller of locale feature pod button.
  11. class ASH_EXPORT LocaleFeaturePodController : public FeaturePodControllerBase {
  12. public:
  13. explicit LocaleFeaturePodController(
  14. UnifiedSystemTrayController* tray_controller);
  15. LocaleFeaturePodController(const LocaleFeaturePodController&) = delete;
  16. LocaleFeaturePodController& operator=(const LocaleFeaturePodController&) =
  17. delete;
  18. ~LocaleFeaturePodController() override;
  19. // FeaturePodControllerBase:
  20. FeaturePodButton* CreateButton() override;
  21. void OnIconPressed() override;
  22. SystemTrayItemUmaType GetUmaType() const override;
  23. private:
  24. // Unowned.
  25. UnifiedSystemTrayController* const tray_controller_;
  26. };
  27. } // namespace ash
  28. #endif // ASH_SYSTEM_LOCALE_LOCALE_FEATURE_POD_CONTROLLER_H_