capture_mode_feature_pod_controller.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright 2020 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_CAPTURE_MODE_CAPTURE_MODE_FEATURE_POD_CONTROLLER_H_
  5. #define ASH_CAPTURE_MODE_CAPTURE_MODE_FEATURE_POD_CONTROLLER_H_
  6. #include "ash/system/unified/feature_pod_controller_base.h"
  7. namespace ash {
  8. class UnifiedSystemTrayController;
  9. // Controller of a feature pod button that toggles night light mode.
  10. class CaptureModeFeaturePodController : public FeaturePodControllerBase {
  11. public:
  12. explicit CaptureModeFeaturePodController(
  13. UnifiedSystemTrayController* controller);
  14. CaptureModeFeaturePodController(const CaptureModeFeaturePodController&) =
  15. delete;
  16. CaptureModeFeaturePodController& operator=(
  17. const CaptureModeFeaturePodController&) = delete;
  18. ~CaptureModeFeaturePodController() override;
  19. // FeaturePodControllerBase:
  20. FeaturePodButton* CreateButton() override;
  21. void OnIconPressed() override;
  22. SystemTrayItemUmaType GetUmaType() const override;
  23. private:
  24. UnifiedSystemTrayController* const tray_controller_;
  25. FeaturePodButton* button_ = nullptr;
  26. };
  27. } // namespace ash
  28. #endif // ASH_CAPTURE_MODE_CAPTURE_MODE_FEATURE_POD_CONTROLLER_H_