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

Unified Diff: ash/system/status_area_widget.h

Issue 10824153: Change Ash web notification behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix clang Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/system/status_area_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/status_area_widget.h
diff --git a/ash/system/status_area_widget.h b/ash/system/status_area_widget.h
index 168c8981e2e4ccb00937aaf3c0141570fc982075..44dc754b984b70619aacf482058f833831364740 100644
--- a/ash/system/status_area_widget.h
+++ b/ash/system/status_area_widget.h
@@ -24,11 +24,6 @@ class StatusAreaWidgetDelegate;
class ASH_EXPORT StatusAreaWidget : public views::Widget {
public:
- enum UserAction {
- NON_USER_ACTION,
- USER_ACTION
- };
-
StatusAreaWidget();
virtual ~StatusAreaWidget();
@@ -47,10 +42,14 @@ class ASH_EXPORT StatusAreaWidget : public views::Widget {
bool value,
internal::BackgroundAnimator::ChangeType change_type);
- // Always used to show/hide the web notification tray. These handle any logic
- // with hiding/supressing notifications from the system tray.
- void ShowWebNotificationBubble(UserAction user_action);
- void HideWebNotificationBubble();
+ // Hide any non system (i.e. web) notifications.
+ void HideNonSystemNotifications();
+
+ // Toggle the visibility of system notifications.
+ void SetHideSystemNotifications(bool hide);
+
+ // Returns true if it is OK to show a non system notification.
+ bool ShouldShowNonSystemNotifications();
// Called by the client when the login status changes. Caches login_status
// and calls UpdateAfterLoginStatusChange for the system tray and the web
« 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