123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- // Copyright 2018 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_SYSTEM_UNIFIED_NOTIFICATION_HIDDEN_VIEW_H_
- #define ASH_SYSTEM_UNIFIED_NOTIFICATION_HIDDEN_VIEW_H_
- #include "ui/views/view.h"
- namespace views {
- class Button;
- class Label;
- }
- namespace ash {
- // A view to show the message that notifications are hidden on the lock screen
- // by the setting or the flag. This may show the button to encourage the user
- // to change the lock screen notification setting if the condition permits.
- class NotificationHiddenView : public views::View {
- public:
- NotificationHiddenView();
- NotificationHiddenView(const NotificationHiddenView&) = delete;
- NotificationHiddenView& operator=(const NotificationHiddenView&) = delete;
- ~NotificationHiddenView() override = default;
- // views::View:
- const char* GetClassName() const override;
- void OnThemeChanged() override;
- views::Button* change_button_for_testing() { return change_button_; }
- private:
- void ChangeButtonPressed();
- views::View* const container_;
- views::Label* const label_;
- views::Button* change_button_ = nullptr;
- };
- } // namespace ash
- #endif // ASH_SYSTEM_UNIFIED_NOTIFICATION_HIDDEN_VIEW_H_
|