dark_light_mode_nudge.h 890 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2022 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_STYLE_DARK_LIGHT_MODE_NUDGE_H_
  5. #define ASH_STYLE_DARK_LIGHT_MODE_NUDGE_H_
  6. #include "ash/system/tray/system_nudge.h"
  7. namespace ash {
  8. // Implements an educational nudge for dark light mode.
  9. class DarkLightModeNudge : public SystemNudge {
  10. public:
  11. DarkLightModeNudge();
  12. DarkLightModeNudge(const DarkLightModeNudge&) = delete;
  13. DarkLightModeNudge& operator=(const DarkLightModeNudge&) = delete;
  14. ~DarkLightModeNudge() override;
  15. protected:
  16. // SystemNudge:
  17. std::unique_ptr<SystemNudgeLabel> CreateLabelView() const override;
  18. const gfx::VectorIcon& GetIcon() const override;
  19. std::u16string GetAccessibilityText() const override;
  20. };
  21. } // namespace ash
  22. #endif // ASH_STYLE_DARK_LIGHT_MODE_NUDGE_H_