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

Unified Diff: ash/system/web_notification/web_notification_tray.h

Issue 19291004: Observes work area change and auto-hide for notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/web_notification/web_notification_tray.h
diff --git a/ash/system/web_notification/web_notification_tray.h b/ash/system/web_notification/web_notification_tray.h
index 15c064225fa1b49db97f011c99ddd5fb9a3d4f35..7ebdd5803e9969ffad941065f73e771f359af8b6 100644
--- a/ash/system/web_notification/web_notification_tray.h
+++ b/ash/system/web_notification/web_notification_tray.h
@@ -37,11 +37,11 @@ class MessagePopupCollection;
}
namespace ash {
-
namespace internal {
class StatusAreaWidget;
class WebNotificationBubbleWrapper;
class WebNotificationButton;
+class WorkAreaObserver;
}
class ASH_EXPORT WebNotificationTray
@@ -159,6 +159,9 @@ class ASH_EXPORT WebNotificationTray
// flickers of the shelf from hidden to shown. See: crbug.com/181213
bool should_block_shelf_auto_hide_;
+ // Observes the work area for |popup_collection_| and notifies to it.
+ scoped_ptr<internal::WorkAreaObserver> work_area_observer_;
+
DISALLOW_COPY_AND_ASSIGN(WebNotificationTray);
};

Powered by Google App Engine
This is Rietveld 408576698