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

Side by Side Diff: ash/system/status_area_widget.h

Issue 20598004: Do not hide the web notification popups by the system tray, rather let them avoid (2nd) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 4 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 | « no previous file | ash/system/status_area_widget.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_STATUS_AREA_WIDGET_H_ 5 #ifndef ASH_SYSTEM_STATUS_AREA_WIDGET_H_
6 #define ASH_SYSTEM_STATUS_AREA_WIDGET_H_ 6 #define ASH_SYSTEM_STATUS_AREA_WIDGET_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shelf/shelf_types.h" 9 #include "ash/shelf/shelf_types.h"
10 #include "ash/system/user/login_status.h" 10 #include "ash/system/user/login_status.h"
(...skipping 19 matching lines...) Expand all
30 // Creates the SystemTray and the WebNotificationTray. 30 // Creates the SystemTray and the WebNotificationTray.
31 void CreateTrayViews(); 31 void CreateTrayViews();
32 32
33 // Destroys the system tray and web notification tray. Called before 33 // Destroys the system tray and web notification tray. Called before
34 // tearing down the windows to avoid shutdown ordering issues. 34 // tearing down the windows to avoid shutdown ordering issues.
35 void Shutdown(); 35 void Shutdown();
36 36
37 // Update the alignment of the widget and tray views. 37 // Update the alignment of the widget and tray views.
38 void SetShelfAlignment(ShelfAlignment alignment); 38 void SetShelfAlignment(ShelfAlignment alignment);
39 39
40 // Set the visibility state of web notifications.
41 void SetHideWebNotifications(bool hide);
42
43 // Set the visibility of system notifications. 40 // Set the visibility of system notifications.
44 void SetHideSystemNotifications(bool hide); 41 void SetHideSystemNotifications(bool hide);
45 42
46 // Returns true if it is OK to show a non system notification. 43 // Returns true if it is OK to show a non system notification.
47 bool ShouldShowWebNotifications(); 44 bool ShouldShowWebNotifications();
48 45
49 // Called by the client when the login status changes. Caches login_status 46 // Called by the client when the login status changes. Caches login_status
50 // and calls UpdateAfterLoginStatusChange for the system tray and the web 47 // and calls UpdateAfterLoginStatusChange for the system tray and the web
51 // notification tray. 48 // notification tray.
52 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); 49 void UpdateAfterLoginStatusChange(user::LoginStatus login_status);
(...skipping 29 matching lines...) Expand all
82 WebNotificationTray* web_notification_tray_; 79 WebNotificationTray* web_notification_tray_;
83 user::LoginStatus login_status_; 80 user::LoginStatus login_status_;
84 81
85 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); 82 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget);
86 }; 83 };
87 84
88 } // namespace internal 85 } // namespace internal
89 } // namespace ash 86 } // namespace ash
90 87
91 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_ 88 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/status_area_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698