// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_ACCESSIBILITY_DICTATION_NUDGE_H_ #define ASH_ACCESSIBILITY_DICTATION_NUDGE_H_ #include #include "ash/ash_export.h" #include "ash/system/tray/system_nudge.h" namespace ash { class DictationNudgeController; class DictationNudgeControllerTest; // Implements a contextual nudge for Dictation informing the user // that their Dictation language now works offline. class ASH_EXPORT DictationNudge : public SystemNudge { public: explicit DictationNudge(DictationNudgeController* controller); DictationNudge(const DictationNudge&) = delete; DictationNudge& operator=(const DictationNudge&) = delete; ~DictationNudge() override; protected: // SystemNudge: std::unique_ptr CreateLabelView() const override; const gfx::VectorIcon& GetIcon() const override; std::u16string GetAccessibilityText() const override; private: friend class DictationNudgeControllerTest; // Unowned. The DictationNudgeController owns |this|. const DictationNudgeController* const controller_; }; } // namespace ash #endif // ASH_ACCESSIBILITY_DICTATION_NUDGE_H_