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

Side by Side Diff: ui/views/widget/widget_observer.h

Issue 11308124: Hide new Autofill Popup on Main Widget Resize or Move. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging to OnWidgetBoundsChanged Created 8 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_
6 #define UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_
7 7
8 #include "ui/views/views_export.h" 8 #include "ui/views/views_export.h"
9 9
10 namespace gfx {
11 class Rect;
12 }
13
10 namespace views { 14 namespace views {
11 15
12 class Widget; 16 class Widget;
13 17
14 // Observers can listen to various events on the Widgets. 18 // Observers can listen to various events on the Widgets.
15 class VIEWS_EXPORT WidgetObserver { 19 class VIEWS_EXPORT WidgetObserver {
16 public: 20 public:
17 virtual void OnWidgetClosing(Widget* widget) {} 21 virtual void OnWidgetClosing(Widget* widget) {}
18 22
19 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) {} 23 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) {}
20 24
21 virtual void OnWidgetActivationChanged(Widget* widget, bool active) {} 25 virtual void OnWidgetActivationChanged(Widget* widget, bool active) {}
22 26
23 virtual void OnWidgetMoved(Widget* widget) {} 27 virtual void OnWidgetBoundsChanged(Widget* widget,
28 const gfx::Rect& new_bounds) {}
24 29
25 protected: 30 protected:
26 virtual ~WidgetObserver() {} 31 virtual ~WidgetObserver() {}
27 }; 32 };
28 33
29 } // namespace views 34 } // namespace views
30 35
31 #endif // UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_ 36 #endif // UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698