OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "components/mus/public/cpp/window.h" | 10 #include "components/mus/public/cpp/window.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 virtual void OnWindowClientAreaChanged(Window* window, | 57 virtual void OnWindowClientAreaChanged(Window* window, |
58 const gfx::Insets& old_client_area) {} | 58 const gfx::Insets& old_client_area) {} |
59 | 59 |
60 virtual void OnWindowViewportMetricsChanged( | 60 virtual void OnWindowViewportMetricsChanged( |
61 Window* window, | 61 Window* window, |
62 const mojom::ViewportMetrics& old_metrics, | 62 const mojom::ViewportMetrics& old_metrics, |
63 const mojom::ViewportMetrics& new_metrics) {} | 63 const mojom::ViewportMetrics& new_metrics) {} |
64 | 64 |
65 virtual void OnWindowFocusChanged(Window* gained_focus, Window* lost_focus) {} | 65 virtual void OnWindowFocusChanged(Window* gained_focus, Window* lost_focus) {} |
66 | 66 |
67 virtual void OnWindowSetPredefinedCursor(Window* window, | |
sky
2015/12/02 21:42:35
OnWindowPredefinedCursorChanged
| |
68 mojom::Cursor cursor) {} | |
69 | |
67 virtual void OnWindowInputEvent(Window* window, | 70 virtual void OnWindowInputEvent(Window* window, |
68 const mojom::EventPtr& event) {} | 71 const mojom::EventPtr& event) {} |
69 | 72 |
70 virtual void OnWindowVisibilityChanging(Window* window) {} | 73 virtual void OnWindowVisibilityChanging(Window* window) {} |
71 virtual void OnWindowVisibilityChanged(Window* window) {} | 74 virtual void OnWindowVisibilityChanged(Window* window) {} |
72 | 75 |
73 // Invoked when this Window's shared properties have changed. This can either | 76 // Invoked when this Window's shared properties have changed. This can either |
74 // be caused by SetSharedProperty() being called locally, or by us receiving | 77 // be caused by SetSharedProperty() being called locally, or by us receiving |
75 // a mojo message that this property has changed. If this property has been | 78 // a mojo message that this property has changed. If this property has been |
76 // added, |old_data| is null. If this property was removed, |new_data| is | 79 // added, |old_data| is null. If this property was removed, |new_data| is |
(...skipping 20 matching lines...) Expand all Loading... | |
97 virtual void OnWindowDrawnChanging(Window* window) {} | 100 virtual void OnWindowDrawnChanging(Window* window) {} |
98 virtual void OnWindowDrawnChanged(Window* window) {} | 101 virtual void OnWindowDrawnChanged(Window* window) {} |
99 | 102 |
100 protected: | 103 protected: |
101 virtual ~WindowObserver() {} | 104 virtual ~WindowObserver() {} |
102 }; | 105 }; |
103 | 106 |
104 } // namespace mus | 107 } // namespace mus |
105 | 108 |
106 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ | 109 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ |
OLD | NEW |