Chromium Code Reviews

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

Issue 196603003: Reland r256396 Add views implementation for AXTreeSource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/widget.cc ('k') | no next file » | 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 { 10 namespace gfx {
11 class Rect; 11 class Rect;
12 } 12 }
13 13
14 namespace views { 14 namespace views {
15 15
16 class Widget; 16 class Widget;
17 class View;
17 18
18 // Observers can listen to various events on the Widgets. 19 // Observers can listen to various events on the Widgets.
19 class VIEWS_EXPORT WidgetObserver { 20 class VIEWS_EXPORT WidgetObserver {
20 public: 21 public:
21 // The closing notification is sent immediately in response to (i.e. in the 22 // The closing notification is sent immediately in response to (i.e. in the
22 // same call stack as) a request to close the Widget (via Close() or 23 // same call stack as) a request to close the Widget (via Close() or
23 // CloseNow()). 24 // CloseNow()).
24 virtual void OnWidgetClosing(Widget* widget) {} 25 virtual void OnWidgetClosing(Widget* widget) {}
25 26
26 // Invoked after notification is received from the event loop that the native 27 // Invoked after notification is received from the event loop that the native
(...skipping 11 matching lines...)
38 39
39 virtual void OnWidgetVisibilityChanging(Widget* widget, bool visible) {} 40 virtual void OnWidgetVisibilityChanging(Widget* widget, bool visible) {}
40 41
41 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) {} 42 virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) {}
42 43
43 virtual void OnWidgetActivationChanged(Widget* widget, bool active) {} 44 virtual void OnWidgetActivationChanged(Widget* widget, bool active) {}
44 45
45 virtual void OnWidgetBoundsChanged(Widget* widget, 46 virtual void OnWidgetBoundsChanged(Widget* widget,
46 const gfx::Rect& new_bounds) {} 47 const gfx::Rect& new_bounds) {}
47 48
49 // Called after a descendant view of |widget| is removed.
50 virtual void OnViewRemoved(Widget* widget, View* view) {}
51
48 protected: 52 protected:
49 virtual ~WidgetObserver() {} 53 virtual ~WidgetObserver() {}
50 }; 54 };
51 55
52 } // namespace views 56 } // namespace views
53 57
54 #endif // UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_ 58 #endif // UI_VIEWS_WIDGET_WIDGET_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine