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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 virtual void OnWindowDestroying(Window* window) {} | 48 virtual void OnWindowDestroying(Window* window) {} |
49 virtual void OnWindowDestroyed(Window* window) {} | 49 virtual void OnWindowDestroyed(Window* window) {} |
50 | 50 |
51 virtual void OnWindowBoundsChanging(Window* window, | 51 virtual void OnWindowBoundsChanging(Window* window, |
52 const gfx::Rect& old_bounds, | 52 const gfx::Rect& old_bounds, |
53 const gfx::Rect& new_bounds) {} | 53 const gfx::Rect& new_bounds) {} |
54 virtual void OnWindowBoundsChanged(Window* window, | 54 virtual void OnWindowBoundsChanged(Window* window, |
55 const gfx::Rect& old_bounds, | 55 const gfx::Rect& old_bounds, |
56 const gfx::Rect& new_bounds) {} | 56 const gfx::Rect& new_bounds) {} |
| 57 virtual void OnWindowLostCapture(Window* window) {} |
57 virtual void OnWindowClientAreaChanged( | 58 virtual void OnWindowClientAreaChanged( |
58 Window* window, | 59 Window* window, |
59 const gfx::Insets& old_client_area, | 60 const gfx::Insets& old_client_area, |
60 const std::vector<gfx::Rect>& old_additional_client_areas) {} | 61 const std::vector<gfx::Rect>& old_additional_client_areas) {} |
61 | 62 |
62 virtual void OnWindowViewportMetricsChanged( | 63 virtual void OnWindowViewportMetricsChanged( |
63 Window* window, | 64 Window* window, |
64 const mojom::ViewportMetrics& old_metrics, | 65 const mojom::ViewportMetrics& old_metrics, |
65 const mojom::ViewportMetrics& new_metrics) {} | 66 const mojom::ViewportMetrics& new_metrics) {} |
66 | 67 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // allows the close it should destroy the window as appropriate. | 103 // allows the close it should destroy the window as appropriate. |
103 virtual void OnRequestClose(Window* window) {} | 104 virtual void OnRequestClose(Window* window) {} |
104 | 105 |
105 protected: | 106 protected: |
106 virtual ~WindowObserver() {} | 107 virtual ~WindowObserver() {} |
107 }; | 108 }; |
108 | 109 |
109 } // namespace mus | 110 } // namespace mus |
110 | 111 |
111 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ | 112 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ |
OLD | NEW |