OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_WS_SERVER_WINDOW_OBSERVER_H_ | 5 #ifndef COMPONENTS_MUS_WS_SERVER_WINDOW_OBSERVER_H_ |
6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_OBSERVER_H_ | 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_OBSERVER_H_ |
7 | 7 |
8 #include "components/mus/public/interfaces/mus_constants.mojom.h" | 8 #include "components/mus/public/interfaces/mus_constants.mojom.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
| 11 class Insets; |
11 class Rect; | 12 class Rect; |
12 } | 13 } |
13 | 14 |
14 namespace ui { | 15 namespace ui { |
15 struct TextInputState; | 16 struct TextInputState; |
16 } | 17 } |
17 | 18 |
18 namespace mus { | 19 namespace mus { |
19 | 20 |
20 namespace ws { | 21 namespace ws { |
(...skipping 18 matching lines...) Expand all Loading... |
39 | 40 |
40 virtual void OnWindowHierarchyChanged(ServerWindow* window, | 41 virtual void OnWindowHierarchyChanged(ServerWindow* window, |
41 ServerWindow* new_parent, | 42 ServerWindow* new_parent, |
42 ServerWindow* old_parent) {} | 43 ServerWindow* old_parent) {} |
43 | 44 |
44 virtual void OnWindowBoundsChanged(ServerWindow* window, | 45 virtual void OnWindowBoundsChanged(ServerWindow* window, |
45 const gfx::Rect& old_bounds, | 46 const gfx::Rect& old_bounds, |
46 const gfx::Rect& new_bounds) {} | 47 const gfx::Rect& new_bounds) {} |
47 | 48 |
48 virtual void OnWindowClientAreaChanged(ServerWindow* window, | 49 virtual void OnWindowClientAreaChanged(ServerWindow* window, |
49 const gfx::Rect& old_client_area, | 50 const gfx::Insets& old_client_area, |
50 const gfx::Rect& new_client_area) {} | 51 const gfx::Insets& new_client_area) {} |
51 | 52 |
52 virtual void OnWindowReordered(ServerWindow* window, | 53 virtual void OnWindowReordered(ServerWindow* window, |
53 ServerWindow* relative, | 54 ServerWindow* relative, |
54 mojom::OrderDirection direction) {} | 55 mojom::OrderDirection direction) {} |
55 | 56 |
56 virtual void OnWillChangeWindowVisibility(ServerWindow* window) {} | 57 virtual void OnWillChangeWindowVisibility(ServerWindow* window) {} |
57 virtual void OnWindowVisibilityChanged(ServerWindow* window) {} | 58 virtual void OnWindowVisibilityChanged(ServerWindow* window) {} |
58 | 59 |
59 virtual void OnWindowTextInputStateChanged(ServerWindow* window, | 60 virtual void OnWindowTextInputStateChanged(ServerWindow* window, |
60 const ui::TextInputState& state) {} | 61 const ui::TextInputState& state) {} |
61 | 62 |
62 virtual void OnWindowSharedPropertyChanged( | 63 virtual void OnWindowSharedPropertyChanged( |
63 ServerWindow* window, | 64 ServerWindow* window, |
64 const std::string& name, | 65 const std::string& name, |
65 const std::vector<uint8_t>* new_data) {} | 66 const std::vector<uint8_t>* new_data) {} |
66 | 67 |
67 protected: | 68 protected: |
68 virtual ~ServerWindowObserver() {} | 69 virtual ~ServerWindowObserver() {} |
69 }; | 70 }; |
70 | 71 |
71 } // namespace ws | 72 } // namespace ws |
72 | 73 |
73 } // namespace mus | 74 } // namespace mus |
74 | 75 |
75 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_OBSERVER_H_ | 76 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_OBSERVER_H_ |
OLD | NEW |