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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 mojom::WindowTreePtr tree, | 189 mojom::WindowTreePtr tree, |
190 Id focused_window_id, | 190 Id focused_window_id, |
191 bool drawn) override; | 191 bool drawn) override; |
192 void OnEmbeddedAppDisconnected(Id window_id) override; | 192 void OnEmbeddedAppDisconnected(Id window_id) override; |
193 void OnUnembed(Id window_id) override; | 193 void OnUnembed(Id window_id) override; |
194 void OnLostCapture(Id window_id) override; | 194 void OnLostCapture(Id window_id) override; |
195 void OnTopLevelCreated(uint32_t change_id, | 195 void OnTopLevelCreated(uint32_t change_id, |
196 mojom::WindowDataPtr data, | 196 mojom::WindowDataPtr data, |
197 bool drawn) override; | 197 bool drawn) override; |
198 void OnWindowBoundsChanged(Id window_id, | 198 void OnWindowBoundsChanged(Id window_id, |
199 mojo::RectPtr old_bounds, | 199 const gfx::Rect& old_bounds, |
200 mojo::RectPtr new_bounds) override; | 200 const gfx::Rect& new_bounds) override; |
201 void OnClientAreaChanged( | 201 void OnClientAreaChanged( |
202 uint32_t window_id, | 202 uint32_t window_id, |
203 mojo::InsetsPtr new_client_area, | 203 const gfx::Insets& new_client_area, |
204 mojo::Array<mojo::RectPtr> new_additional_client_areas) override; | 204 mojo::Array<gfx::Rect> new_additional_client_areas) override; |
205 void OnTransientWindowAdded(uint32_t window_id, | 205 void OnTransientWindowAdded(uint32_t window_id, |
206 uint32_t transient_window_id) override; | 206 uint32_t transient_window_id) override; |
207 void OnTransientWindowRemoved(uint32_t window_id, | 207 void OnTransientWindowRemoved(uint32_t window_id, |
208 uint32_t transient_window_id) override; | 208 uint32_t transient_window_id) override; |
209 void OnWindowViewportMetricsChanged( | 209 void OnWindowViewportMetricsChanged( |
210 mojo::Array<uint32_t> window_ids, | 210 mojo::Array<uint32_t> window_ids, |
211 mojom::ViewportMetricsPtr old_metrics, | 211 mojom::ViewportMetricsPtr old_metrics, |
212 mojom::ViewportMetricsPtr new_metrics) override; | 212 mojom::ViewportMetricsPtr new_metrics) override; |
213 void OnWindowHierarchyChanged( | 213 void OnWindowHierarchyChanged( |
214 Id window_id, | 214 Id window_id, |
(...skipping 22 matching lines...) Expand all Loading... |
237 void OnWindowPredefinedCursorChanged(Id window_id, | 237 void OnWindowPredefinedCursorChanged(Id window_id, |
238 mojom::Cursor cursor) override; | 238 mojom::Cursor cursor) override; |
239 void OnChangeCompleted(uint32_t change_id, bool success) override; | 239 void OnChangeCompleted(uint32_t change_id, bool success) override; |
240 void RequestClose(uint32_t window_id) override; | 240 void RequestClose(uint32_t window_id) override; |
241 void GetWindowManager( | 241 void GetWindowManager( |
242 mojo::AssociatedInterfaceRequest<WindowManager> internal) override; | 242 mojo::AssociatedInterfaceRequest<WindowManager> internal) override; |
243 | 243 |
244 // Overridden from WindowManager: | 244 // Overridden from WindowManager: |
245 void WmSetBounds(uint32_t change_id, | 245 void WmSetBounds(uint32_t change_id, |
246 Id window_id, | 246 Id window_id, |
247 mojo::RectPtr transit_bounds) override; | 247 const gfx::Rect& transit_bounds) override; |
248 void WmSetProperty(uint32_t change_id, | 248 void WmSetProperty(uint32_t change_id, |
249 Id window_id, | 249 Id window_id, |
250 const mojo::String& name, | 250 const mojo::String& name, |
251 mojo::Array<uint8_t> transit_data) override; | 251 mojo::Array<uint8_t> transit_data) override; |
252 void WmCreateTopLevelWindow(uint32_t change_id, | 252 void WmCreateTopLevelWindow(uint32_t change_id, |
253 ConnectionSpecificId requesting_client_id, | 253 ConnectionSpecificId requesting_client_id, |
254 mojo::Map<mojo::String, mojo::Array<uint8_t>> | 254 mojo::Map<mojo::String, mojo::Array<uint8_t>> |
255 transport_properties) override; | 255 transport_properties) override; |
256 void WmClientJankinessChanged(ConnectionSpecificId client_id, | 256 void WmClientJankinessChanged(ConnectionSpecificId client_id, |
257 bool janky) override; | 257 bool janky) override; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 uint32_t event_observer_id_ = 0u; | 328 uint32_t event_observer_id_ = 0u; |
329 | 329 |
330 base::WeakPtrFactory<WindowTreeClientImpl> weak_factory_; | 330 base::WeakPtrFactory<WindowTreeClientImpl> weak_factory_; |
331 | 331 |
332 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); | 332 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); |
333 }; | 333 }; |
334 | 334 |
335 } // namespace mus | 335 } // namespace mus |
336 | 336 |
337 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 337 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
OLD | NEW |