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

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

Issue 10834079: views: Extract Widget observer into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « ash/system/tray/tray_bubble_view.cc ('k') | ash/touch/touch_observer_hud.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/web_notification/web_notification_tray.cc
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc
index 6d98d7a4e559fca6996a7e1a45c093d888ed941d..3f8afaead47a40fcce9529d5236e1703f6f6aab9 100644
--- a/ash/system/web_notification/web_notification_tray.cc
+++ b/ash/system/web_notification/web_notification_tray.cc
@@ -27,6 +27,7 @@
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/grid_layout.h"
#include "ui/views/painter.h"
+#include "ui/views/widget/widget_observer.h"
namespace {
@@ -547,7 +548,7 @@ class WebNotificationTray::BubbleContentsView : public views::View {
};
class WebNotificationTray::Bubble : public internal::TrayBubbleView::Host,
- public views::Widget::Observer {
+ public views::WidgetObserver {
public:
explicit Bubble(WebNotificationTray* tray)
: tray_(tray),
@@ -628,7 +629,7 @@ class WebNotificationTray::Bubble : public internal::TrayBubbleView::Host,
tray_->status_area_widget()->HideWebNotificationBubble();
}
- // Overridden from views::Widget::Observer.
+ // Overridden from views::WidgetObserver:
virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE {
CHECK_EQ(bubble_widget_, widget);
bubble_widget_ = NULL;
« no previous file with comments | « ash/system/tray/tray_bubble_view.cc ('k') | ash/touch/touch_observer_hud.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698