| 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_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void Reorder(Window* window, | 64 void Reorder(Window* window, |
| 65 Id relative_window_id, | 65 Id relative_window_id, |
| 66 mojom::OrderDirection direction); | 66 mojom::OrderDirection direction); |
| 67 | 67 |
| 68 // Returns true if the specified window was created by this connection. | 68 // Returns true if the specified window was created by this connection. |
| 69 bool OwnsWindow(Window* window) const; | 69 bool OwnsWindow(Window* window) const; |
| 70 | 70 |
| 71 void SetBounds(Window* window, | 71 void SetBounds(Window* window, |
| 72 const gfx::Rect& old_bounds, | 72 const gfx::Rect& old_bounds, |
| 73 const gfx::Rect& bounds); | 73 const gfx::Rect& bounds); |
| 74 void SetCapture(Window* window); |
| 75 void ReleaseCapture(Window* window); |
| 74 void SetClientArea(Id window_id, | 76 void SetClientArea(Id window_id, |
| 75 const gfx::Insets& client_area, | 77 const gfx::Insets& client_area, |
| 76 const std::vector<gfx::Rect>& additional_client_areas); | 78 const std::vector<gfx::Rect>& additional_client_areas); |
| 77 void SetFocus(Window* window); | 79 void SetFocus(Window* window); |
| 78 void SetCanFocus(Id window_id, bool can_focus); | 80 void SetCanFocus(Id window_id, bool can_focus); |
| 79 void SetPredefinedCursor(Id window_id, mus::mojom::Cursor cursor_id); | 81 void SetPredefinedCursor(Id window_id, mus::mojom::Cursor cursor_id); |
| 80 void SetVisible(Window* window, bool visible); | 82 void SetVisible(Window* window, bool visible); |
| 81 void SetProperty(Window* window, | 83 void SetProperty(Window* window, |
| 82 const std::string& name, | 84 const std::string& name, |
| 83 mojo::Array<uint8_t> data); | 85 mojo::Array<uint8_t> data); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 void RemoveObserver(WindowTreeConnectionObserver* observer) override; | 164 void RemoveObserver(WindowTreeConnectionObserver* observer) override; |
| 163 | 165 |
| 164 // Overridden from WindowTreeClient: | 166 // Overridden from WindowTreeClient: |
| 165 void OnEmbed(ConnectionSpecificId connection_id, | 167 void OnEmbed(ConnectionSpecificId connection_id, |
| 166 mojom::WindowDataPtr root, | 168 mojom::WindowDataPtr root, |
| 167 mojom::WindowTreePtr tree, | 169 mojom::WindowTreePtr tree, |
| 168 Id focused_window_id, | 170 Id focused_window_id, |
| 169 uint32_t access_policy) override; | 171 uint32_t access_policy) override; |
| 170 void OnEmbeddedAppDisconnected(Id window_id) override; | 172 void OnEmbeddedAppDisconnected(Id window_id) override; |
| 171 void OnUnembed(Id window_id) override; | 173 void OnUnembed(Id window_id) override; |
| 174 void OnLostCapture(Id window_id) override; |
| 172 void OnTopLevelCreated(uint32_t change_id, | 175 void OnTopLevelCreated(uint32_t change_id, |
| 173 mojom::WindowDataPtr data) override; | 176 mojom::WindowDataPtr data) override; |
| 174 void OnWindowBoundsChanged(Id window_id, | 177 void OnWindowBoundsChanged(Id window_id, |
| 175 mojo::RectPtr old_bounds, | 178 mojo::RectPtr old_bounds, |
| 176 mojo::RectPtr new_bounds) override; | 179 mojo::RectPtr new_bounds) override; |
| 177 void OnClientAreaChanged( | 180 void OnClientAreaChanged( |
| 178 uint32_t window_id, | 181 uint32_t window_id, |
| 179 mojo::InsetsPtr new_client_area, | 182 mojo::InsetsPtr new_client_area, |
| 180 mojo::Array<mojo::RectPtr> new_additional_client_areas) override; | 183 mojo::Array<mojo::RectPtr> new_additional_client_areas) override; |
| 181 void OnTransientWindowAdded(uint32_t window_id, | 184 void OnTransientWindowAdded(uint32_t window_id, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 window_manager_internal_; | 266 window_manager_internal_; |
| 264 mojom::WindowManagerInternalClientAssociatedPtr | 267 mojom::WindowManagerInternalClientAssociatedPtr |
| 265 window_manager_internal_client_; | 268 window_manager_internal_client_; |
| 266 | 269 |
| 267 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); | 270 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); |
| 268 }; | 271 }; |
| 269 | 272 |
| 270 } // namespace mus | 273 } // namespace mus |
| 271 | 274 |
| 272 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 275 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
| OLD | NEW |