OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 5 #ifndef ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/system/tray/tray_background_view.h" | 9 #include "ash/system/tray/tray_background_view.h" |
10 #include "ash/system/user/login_status.h" | 10 #include "ash/system/user/login_status.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual void ButtonPressed(views::Button* sender, | 100 virtual void ButtonPressed(views::Button* sender, |
101 const ui::Event& event) OVERRIDE; | 101 const ui::Event& event) OVERRIDE; |
102 | 102 |
103 // Overridden from MessageCenterTrayDelegate. | 103 // Overridden from MessageCenterTrayDelegate. |
104 virtual void OnMessageCenterTrayChanged() OVERRIDE; | 104 virtual void OnMessageCenterTrayChanged() OVERRIDE; |
105 virtual bool ShowMessageCenter() OVERRIDE; | 105 virtual bool ShowMessageCenter() OVERRIDE; |
106 virtual void HideMessageCenter() OVERRIDE; | 106 virtual void HideMessageCenter() OVERRIDE; |
107 virtual bool ShowPopups() OVERRIDE; | 107 virtual bool ShowPopups() OVERRIDE; |
108 virtual void HidePopups() OVERRIDE; | 108 virtual void HidePopups() OVERRIDE; |
109 virtual bool ShowNotifierSettings() OVERRIDE; | 109 virtual bool ShowNotifierSettings() OVERRIDE; |
| 110 virtual message_center::MessageCenterTray* GetMessageCenterTray() OVERRIDE; |
110 | 111 |
111 // Overridden from TrayBackgroundView. | 112 // Overridden from TrayBackgroundView. |
112 virtual bool IsPressed() OVERRIDE; | 113 virtual bool IsPressed() OVERRIDE; |
113 | 114 |
114 message_center::MessageCenter* message_center(); | 115 message_center::MessageCenter* message_center(); |
115 | 116 |
116 private: | 117 private: |
117 friend class WebNotificationTrayTest; | 118 friend class WebNotificationTrayTest; |
118 | 119 |
119 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotifications); | 120 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotifications); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 168 |
168 // Observes the work area for |popup_collection_| and notifies to it. | 169 // Observes the work area for |popup_collection_| and notifies to it. |
169 scoped_ptr<internal::WorkAreaObserver> work_area_observer_; | 170 scoped_ptr<internal::WorkAreaObserver> work_area_observer_; |
170 | 171 |
171 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 172 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
172 }; | 173 }; |
173 | 174 |
174 } // namespace ash | 175 } // namespace ash |
175 | 176 |
176 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 177 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
OLD | NEW |