adaptive_charging_nudge.h 984 B

123456789101112131415161718192021222324252627282930
  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_SYSTEM_POWER_ADAPTIVE_CHARGING_NUDGE_H_
  5. #define ASH_SYSTEM_POWER_ADAPTIVE_CHARGING_NUDGE_H_
  6. #include "ash/ash_export.h"
  7. #include "ash/system/tray/system_nudge.h"
  8. namespace ash {
  9. // Implements a contextual nudge for apdative charging.
  10. class ASH_EXPORT AdaptiveChargingNudge : public SystemNudge {
  11. public:
  12. explicit AdaptiveChargingNudge();
  13. AdaptiveChargingNudge(const AdaptiveChargingNudge&) = delete;
  14. AdaptiveChargingNudge& operator=(const AdaptiveChargingNudge&) = delete;
  15. ~AdaptiveChargingNudge() override;
  16. private:
  17. // SystemNudge:
  18. std::unique_ptr<SystemNudgeLabel> CreateLabelView() const override;
  19. const gfx::VectorIcon& GetIcon() const override;
  20. std::u16string GetAccessibilityText() const override;
  21. };
  22. } // namespace ash
  23. #endif // ASH_SYSTEM_POWER_ADAPTIVE_CHARGING_NUDGE_H_