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

Unified Diff: ash/system/tray/system_tray.h

Issue 10546125: Add WebNotificationTray to the status area (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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
Index: ash/system/tray/system_tray.h
diff --git a/ash/system/tray/system_tray.h b/ash/system/tray/system_tray.h
index f6cf1cae7e8c6bf79e7f5a74b942e3f1fd7df55b..d79fc9322e4113879bfb46fdb1b86ef55ede58e6 100644
--- a/ash/system/tray/system_tray.h
+++ b/ash/system/tray/system_tray.h
@@ -96,6 +96,12 @@ class ASH_EXPORT SystemTray : public internal::TrayBackgroundView {
// Updates the items when the shelf alignment changes.
void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment);
+ // Temporarily hides/unhides the notification bubble.
+ void SetHideNotifications(bool hidden);
+
+ // Returns true if the primary bubble is visible.
+ bool IsBubbleVisible() const;
+
// Returns true if the launcher should show.
bool should_show_launcher() const {
return bubble_.get() && should_show_launcher_;
@@ -241,6 +247,10 @@ class ASH_EXPORT SystemTray : public internal::TrayBackgroundView {
// views directly (e.g. from a notification) we know what height to use.
int default_bubble_height_;
+ // Set to true when system notifications should be hidden (e.g. web
+ // notification bubble is visible).
+ bool hide_notifications_;
+
DISALLOW_COPY_AND_ASSIGN(SystemTray);
};

Powered by Google App Engine
This is Rietveld 408576698