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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 OnWindowClientAreaChanged(Window* window, | 57 virtual void OnWindowClientAreaChanged(Window* window, |
58 const gfx::Rect& 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 OnWindowInputEvent(Window* window, | 67 virtual void OnWindowInputEvent(Window* window, |
68 const mojom::EventPtr& event) {} | 68 const mojom::EventPtr& event) {} |
(...skipping 28 matching lines...) Expand all Loading... |
97 virtual void OnWindowDrawnChanging(Window* window) {} | 97 virtual void OnWindowDrawnChanging(Window* window) {} |
98 virtual void OnWindowDrawnChanged(Window* window) {} | 98 virtual void OnWindowDrawnChanged(Window* window) {} |
99 | 99 |
100 protected: | 100 protected: |
101 virtual ~WindowObserver() {} | 101 virtual ~WindowObserver() {} |
102 }; | 102 }; |
103 | 103 |
104 } // namespace mus | 104 } // namespace mus |
105 | 105 |
106 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ | 106 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ |
OLD | NEW |