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

Unified Diff: chrome/browser/ui/views/location_bar/content_setting_image_view.h

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
Index: chrome/browser/ui/views/location_bar/content_setting_image_view.h
diff --git a/chrome/browser/ui/views/location_bar/content_setting_image_view.h b/chrome/browser/ui/views/location_bar/content_setting_image_view.h
index b542e34174f91cd366c288fd207d6e3fe0f70577..6542adb640e77a2b9df3c834cd5d5278f15faee7 100644
--- a/chrome/browser/ui/views/location_bar/content_setting_image_view.h
+++ b/chrome/browser/ui/views/location_bar/content_setting_image_view.h
@@ -12,7 +12,7 @@
#include "chrome/common/content_settings_types.h"
#include "ui/base/animation/animation_delegate.h"
#include "ui/views/controls/image_view.h"
-#include "ui/views/widget/widget.h"
+#include "ui/views/widget/widget_observer.h"
class ContentSettingImageModel;
class ContentSettingBubbleContents;
@@ -32,11 +32,10 @@ class SlideAnimation;
class ContentSettingsDelegateView;
-class ContentSettingImageView
- : public views::ImageView,
- public ui::AnimationDelegate,
- public views::Widget::Observer,
- public TouchableLocationBarView {
+class ContentSettingImageView : public views::ImageView,
+ public ui::AnimationDelegate,
+ public views::WidgetObserver,
+ public TouchableLocationBarView {
public:
ContentSettingImageView(ContentSettingsType content_type,
LocationBarView* parent);
@@ -54,7 +53,7 @@ class ContentSettingImageView
virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE;
- // views::Widget::Observer override:
+ // views::WidgetObserver override:
virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
// TouchableLocationBarView.
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/browser/ui/views/location_bar/content_setting_image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698