| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void Reorder(Window* window, | 69 void Reorder(Window* window, |
| 70 Id relative_window_id, | 70 Id relative_window_id, |
| 71 mojom::OrderDirection direction); | 71 mojom::OrderDirection direction); |
| 72 | 72 |
| 73 // Returns true if the specified window was created by this connection. | 73 // Returns true if the specified window was created by this connection. |
| 74 bool OwnsWindow(Window* window) const; | 74 bool OwnsWindow(Window* window) const; |
| 75 | 75 |
| 76 void SetBounds(Window* window, | 76 void SetBounds(Window* window, |
| 77 const gfx::Rect& old_bounds, | 77 const gfx::Rect& old_bounds, |
| 78 const gfx::Rect& bounds); | 78 const gfx::Rect& bounds); |
| 79 void SetCapture(Window* window); |
| 80 void ReleaseCapture(Window* window); |
| 79 void SetClientArea(Id window_id, | 81 void SetClientArea(Id window_id, |
| 80 const gfx::Insets& client_area, | 82 const gfx::Insets& client_area, |
| 81 const std::vector<gfx::Rect>& additional_client_areas); | 83 const std::vector<gfx::Rect>& additional_client_areas); |
| 82 void SetFocus(Window* window); | 84 void SetFocus(Window* window); |
| 83 void SetCanFocus(Id window_id, bool can_focus); | 85 void SetCanFocus(Id window_id, bool can_focus); |
| 84 void SetPredefinedCursor(Id window_id, mus::mojom::Cursor cursor_id); | 86 void SetPredefinedCursor(Id window_id, mus::mojom::Cursor cursor_id); |
| 85 void SetVisible(Window* window, bool visible); | 87 void SetVisible(Window* window, bool visible); |
| 86 void SetProperty(Window* window, | 88 void SetProperty(Window* window, |
| 87 const std::string& name, | 89 const std::string& name, |
| 88 mojo::Array<uint8_t> data); | 90 mojo::Array<uint8_t> data); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void RemoveObserver(WindowTreeConnectionObserver* observer) override; | 169 void RemoveObserver(WindowTreeConnectionObserver* observer) override; |
| 168 | 170 |
| 169 // Overridden from WindowTreeClient: | 171 // Overridden from WindowTreeClient: |
| 170 void OnEmbed(ConnectionSpecificId connection_id, | 172 void OnEmbed(ConnectionSpecificId connection_id, |
| 171 mojom::WindowDataPtr root, | 173 mojom::WindowDataPtr root, |
| 172 mojom::WindowTreePtr tree, | 174 mojom::WindowTreePtr tree, |
| 173 Id focused_window_id, | 175 Id focused_window_id, |
| 174 uint32_t access_policy) override; | 176 uint32_t access_policy) override; |
| 175 void OnEmbeddedAppDisconnected(Id window_id) override; | 177 void OnEmbeddedAppDisconnected(Id window_id) override; |
| 176 void OnUnembed(Id window_id) override; | 178 void OnUnembed(Id window_id) override; |
| 179 void OnLostCapture(Id window_id) override; |
| 177 void OnTopLevelCreated(uint32_t change_id, | 180 void OnTopLevelCreated(uint32_t change_id, |
| 178 mojom::WindowDataPtr data) override; | 181 mojom::WindowDataPtr data) override; |
| 179 void OnWindowBoundsChanged(Id window_id, | 182 void OnWindowBoundsChanged(Id window_id, |
| 180 mojo::RectPtr old_bounds, | 183 mojo::RectPtr old_bounds, |
| 181 mojo::RectPtr new_bounds) override; | 184 mojo::RectPtr new_bounds) override; |
| 182 void OnClientAreaChanged( | 185 void OnClientAreaChanged( |
| 183 uint32_t window_id, | 186 uint32_t window_id, |
| 184 mojo::InsetsPtr new_client_area, | 187 mojo::InsetsPtr new_client_area, |
| 185 mojo::Array<mojo::RectPtr> new_additional_client_areas) override; | 188 mojo::Array<mojo::RectPtr> new_additional_client_areas) override; |
| 186 void OnTransientWindowAdded(uint32_t window_id, | 189 void OnTransientWindowAdded(uint32_t window_id, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 scoped_ptr<mojo::AssociatedBinding<mojom::WindowManager>> | 285 scoped_ptr<mojo::AssociatedBinding<mojom::WindowManager>> |
| 283 window_manager_internal_; | 286 window_manager_internal_; |
| 284 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; | 287 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; |
| 285 | 288 |
| 286 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); | 289 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); |
| 287 }; | 290 }; |
| 288 | 291 |
| 289 } // namespace mus | 292 } // namespace mus |
| 290 | 293 |
| 291 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 294 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
| OLD | NEW |