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

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

Issue 11416286: Revert 170458 - Hide new Autofill Popup on Main Widget Resize or Move. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | Annotate | Revision Log
« 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
14 namespace views { 10 namespace views {
15 11
16 class Widget; 12 class Widget;
17 13
18 // Observers can listen to various events on the Widgets. 14 // Observers can listen to various events on the Widgets.
19 class VIEWS_EXPORT WidgetObserver { 15 class VIEWS_EXPORT WidgetObserver {
20 public: 16 public:
21 virtual void OnWidgetClosing(Widget* widget) {} 17 virtual void OnWidgetClosing(Widget* widget) {}
22 18
23 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) {} 19 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) {}
24 20
25 virtual void OnWidgetActivationChanged(Widget* widget, bool active) {} 21 virtual void OnWidgetActivationChanged(Widget* widget, bool active) {}
26 22
27 virtual void OnWidgetBoundsChanged(Widget* widget, 23 virtual void OnWidgetMoved(Widget* widget) {}
28 const gfx::Rect& new_bounds) {}
29 24
30 protected: 25 protected:
31 virtual ~WidgetObserver() {} 26 virtual ~WidgetObserver() {}
32 }; 27 };
33 28
34 } // namespace views 29 } // namespace views
35 30
36 #endif // UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_ 31 #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