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

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: 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 views { 10 namespace views {
11 11
12 class Widget; 12 class Widget;
13 13
14 // Observers can listen to various events on the Widgets. 14 // Observers can listen to various events on the Widgets.
15 class VIEWS_EXPORT WidgetObserver { 15 class VIEWS_EXPORT WidgetObserver {
16 public: 16 public:
17 virtual void OnWidgetClosing(Widget* widget) {} 17 virtual void OnWidgetClosing(Widget* widget) {}
18 18
19 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) {} 19 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) {}
20 20
21 virtual void OnWidgetActivationChanged(Widget* widget, bool active) {} 21 virtual void OnWidgetActivationChanged(Widget* widget, bool active) {}
22 22
23 virtual void OnWidgetMoved(Widget* widget) {} 23 virtual void OnWidgetMoved(Widget* widget) {}
sky 2012/11/20 19:19:56 Can you combine these into OnWidgetBoundsChanged(W
csharp 2012/11/21 14:53:22 Done.
24 24
25 virtual void OnWidgetSizeChanged(Widget* widget, const gfx::Size& size) {}
26
25 protected: 27 protected:
26 virtual ~WidgetObserver() {} 28 virtual ~WidgetObserver() {}
27 }; 29 };
28 30
29 } // namespace views 31 } // namespace views
30 32
31 #endif // UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_ 33 #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