Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: ash/system/web_notification/web_notification_tray.h

Issue 11759021: Block the autohide of the launcher when 'quiet mode' bubble is shown for notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/system/status_area_widget.cc ('k') | ash/system/web_notification/web_notification_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/tray/tray_views.h" 10 #include "ash/system/tray/tray_views.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 public: 57 public:
58 explicit WebNotificationTray(internal::StatusAreaWidget* status_area_widget); 58 explicit WebNotificationTray(internal::StatusAreaWidget* status_area_widget);
59 virtual ~WebNotificationTray(); 59 virtual ~WebNotificationTray();
60 60
61 // Set whether or not the popup notifications should be hidden. 61 // Set whether or not the popup notifications should be hidden.
62 void SetHidePopupBubble(bool hide); 62 void SetHidePopupBubble(bool hide);
63 63
64 // Updates tray visibility login status of the system changes. 64 // Updates tray visibility login status of the system changes.
65 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); 65 void UpdateAfterLoginStatusChange(user::LoginStatus login_status);
66 66
67 // Returns true if it should block the auto hide behavior of the launcher.
68 bool ShouldBlockLauncherAutoHide() const;
69
67 // Returns true if the message center bubble is visible. 70 // Returns true if the message center bubble is visible.
68 bool IsMessageCenterBubbleVisible() const; 71 bool IsMessageCenterBubbleVisible() const;
69 72
70 // Returns true if the mouse is inside the notification bubble. 73 // Returns true if the mouse is inside the notification bubble.
71 bool IsMouseInNotificationBubble() const; 74 bool IsMouseInNotificationBubble() const;
72 75
73 message_center::MessageCenter* message_center() { 76 message_center::MessageCenter* message_center() {
74 return message_center_.get(); 77 return message_center_.get();
75 } 78 }
76 79
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 scoped_ptr<message_center::QuietModeBubble> quiet_mode_bubble_; 161 scoped_ptr<message_center::QuietModeBubble> quiet_mode_bubble_;
159 views::ImageButton* button_; 162 views::ImageButton* button_;
160 bool show_message_center_on_unlock_; 163 bool show_message_center_on_unlock_;
161 164
162 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); 165 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray);
163 }; 166 };
164 167
165 } // namespace ash 168 } // namespace ash
166 169
167 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 170 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
OLDNEW
« no previous file with comments | « ash/system/status_area_widget.cc ('k') | ash/system/web_notification/web_notification_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698