OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ |
6 #define ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ | 6 #define ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ |
7 | 7 |
8 #include "ash/system/tray/system_tray.h" | 8 #include "ash/system/tray/system_tray.h" |
9 #include "ash/system/tray/system_tray_item.h" | 9 #include "ash/system/tray/system_tray_item.h" |
10 #include "ash/system/tray/system_tray_notifier.h" | 10 #include "ash/system/tray/system_tray_notifier.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(ScreenStatusView); | 68 DISALLOW_COPY_AND_ASSIGN(ScreenStatusView); |
69 }; | 69 }; |
70 | 70 |
71 class ScreenNotificationDelegate : public message_center::NotificationDelegate { | 71 class ScreenNotificationDelegate : public message_center::NotificationDelegate { |
72 public: | 72 public: |
73 explicit ScreenNotificationDelegate(ScreenTrayItem* screen_tray); | 73 explicit ScreenNotificationDelegate(ScreenTrayItem* screen_tray); |
74 | 74 |
75 // message_center::NotificationDelegate overrides: | 75 // message_center::NotificationDelegate overrides: |
76 virtual void Display() override; | 76 virtual void Display() override; |
77 virtual void Error() override; | |
78 virtual void Close(bool by_user) override; | 77 virtual void Close(bool by_user) override; |
79 virtual void Click() override; | 78 virtual void Click() override; |
80 virtual void ButtonClick(int button_index) override; | 79 virtual void ButtonClick(int button_index) override; |
81 | 80 |
82 protected: | 81 protected: |
83 virtual ~ScreenNotificationDelegate(); | 82 virtual ~ScreenNotificationDelegate(); |
84 | 83 |
85 private: | 84 private: |
86 ScreenTrayItem* screen_tray_; | 85 ScreenTrayItem* screen_tray_; |
87 | 86 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 tray::ScreenStatusView* default_view_; | 134 tray::ScreenStatusView* default_view_; |
136 bool is_started_; | 135 bool is_started_; |
137 base::Closure stop_callback_; | 136 base::Closure stop_callback_; |
138 | 137 |
139 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); | 138 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); |
140 }; | 139 }; |
141 | 140 |
142 } // namespace ash | 141 } // namespace ash |
143 | 142 |
144 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ | 143 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ |
OLD | NEW |