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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 void UpdateTrayContent(); | 119 void UpdateTrayContent(); |
120 | 120 |
121 // Queries login status and the status area widget to determine visibility of | 121 // Queries login status and the status area widget to determine visibility of |
122 // the message center. | 122 // the message center. |
123 bool ShouldShowMessageCenter(); | 123 bool ShouldShowMessageCenter(); |
124 | 124 |
125 // Returns true if it should show the quiet mode menu. | 125 // Returns true if it should show the quiet mode menu. |
126 bool ShouldShowQuietModeMenu(const ui::Event& event); | 126 bool ShouldShowQuietModeMenu(const ui::Event& event); |
127 | 127 |
128 // Shows the quiet mode menu. | 128 // Shows the quiet mode menu. |
129 void ShowQuietModeMenu(); | 129 void ShowQuietModeMenu(const ui::Event& event); |
130 | 130 |
131 internal::WebNotificationBubbleWrapper* message_center_bubble() const { | 131 internal::WebNotificationBubbleWrapper* message_center_bubble() const { |
132 return message_center_bubble_.get(); | 132 return message_center_bubble_.get(); |
133 } | 133 } |
134 | 134 |
135 internal::WebNotificationBubbleWrapper* popup_bubble() const { | 135 internal::WebNotificationBubbleWrapper* popup_bubble() const { |
136 return popup_bubble_.get(); | 136 return popup_bubble_.get(); |
137 } | 137 } |
138 | 138 |
139 // Testing accessors. | 139 // Testing accessors. |
(...skipping 17 matching lines...) Expand all Loading... |
157 // the check can be called when creating this object, so it would cause | 157 // the check can be called when creating this object, so it would cause |
158 // flickers of the shelf from hidden to shown. See: crbug.com/181213 | 158 // flickers of the shelf from hidden to shown. See: crbug.com/181213 |
159 bool should_block_shelf_auto_hide_; | 159 bool should_block_shelf_auto_hide_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 161 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
162 }; | 162 }; |
163 | 163 |
164 } // namespace ash | 164 } // namespace ash |
165 | 165 |
166 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 166 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
OLD | NEW |