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_TREE_CLIENT_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 void OnWindowVisibilityChanged(Id window_id, bool visible) override; | 246 void OnWindowVisibilityChanged(Id window_id, bool visible) override; |
247 void OnWindowOpacityChanged(Id window_id, | 247 void OnWindowOpacityChanged(Id window_id, |
248 float old_opacity, | 248 float old_opacity, |
249 float new_opacity) override; | 249 float new_opacity) override; |
250 void OnWindowParentDrawnStateChanged(Id window_id, bool drawn) override; | 250 void OnWindowParentDrawnStateChanged(Id window_id, bool drawn) override; |
251 void OnWindowSharedPropertyChanged(Id window_id, | 251 void OnWindowSharedPropertyChanged(Id window_id, |
252 const mojo::String& name, | 252 const mojo::String& name, |
253 mojo::Array<uint8_t> new_data) override; | 253 mojo::Array<uint8_t> new_data) override; |
254 void OnWindowInputEvent(uint32_t event_id, | 254 void OnWindowInputEvent(uint32_t event_id, |
255 Id window_id, | 255 Id window_id, |
256 mojom::EventPtr event, | 256 std::unique_ptr<ui::Event> event, |
257 uint32_t event_observer_id) override; | 257 uint32_t event_observer_id) override; |
258 void OnEventObserved(mojom::EventPtr event, | 258 void OnEventObserved(std::unique_ptr<ui::Event> event, |
259 uint32_t event_observer_id) override; | 259 uint32_t event_observer_id) override; |
260 void OnWindowFocused(Id focused_window_id) override; | 260 void OnWindowFocused(Id focused_window_id) override; |
261 void OnWindowPredefinedCursorChanged(Id window_id, | 261 void OnWindowPredefinedCursorChanged(Id window_id, |
262 mojom::Cursor cursor) override; | 262 mojom::Cursor cursor) override; |
263 void OnChangeCompleted(uint32_t change_id, bool success) override; | 263 void OnChangeCompleted(uint32_t change_id, bool success) override; |
264 void RequestClose(uint32_t window_id) override; | 264 void RequestClose(uint32_t window_id) override; |
265 void GetWindowManager( | 265 void GetWindowManager( |
266 mojo::AssociatedInterfaceRequest<WindowManager> internal) override; | 266 mojo::AssociatedInterfaceRequest<WindowManager> internal) override; |
267 | 267 |
268 // Overridden from WindowManager: | 268 // Overridden from WindowManager: |
269 void WmSetBounds(uint32_t change_id, | 269 void WmSetBounds(uint32_t change_id, |
270 Id window_id, | 270 Id window_id, |
271 const gfx::Rect& transit_bounds) override; | 271 const gfx::Rect& transit_bounds) override; |
272 void WmSetProperty(uint32_t change_id, | 272 void WmSetProperty(uint32_t change_id, |
273 Id window_id, | 273 Id window_id, |
274 const mojo::String& name, | 274 const mojo::String& name, |
275 mojo::Array<uint8_t> transit_data) override; | 275 mojo::Array<uint8_t> transit_data) override; |
276 void WmCreateTopLevelWindow(uint32_t change_id, | 276 void WmCreateTopLevelWindow(uint32_t change_id, |
277 ClientSpecificId requesting_client_id, | 277 ClientSpecificId requesting_client_id, |
278 mojo::Map<mojo::String, mojo::Array<uint8_t>> | 278 mojo::Map<mojo::String, mojo::Array<uint8_t>> |
279 transport_properties) override; | 279 transport_properties) override; |
280 void WmClientJankinessChanged(ClientSpecificId client_id, | 280 void WmClientJankinessChanged(ClientSpecificId client_id, |
281 bool janky) override; | 281 bool janky) override; |
282 void OnAccelerator(uint32_t id, mus::mojom::EventPtr event) override; | 282 void OnAccelerator(uint32_t id, std::unique_ptr<ui::Event> event) override; |
283 | 283 |
284 // Overridden from WindowManagerClient: | 284 // Overridden from WindowManagerClient: |
285 void SetFrameDecorationValues( | 285 void SetFrameDecorationValues( |
286 mojom::FrameDecorationValuesPtr values) override; | 286 mojom::FrameDecorationValuesPtr values) override; |
287 void SetNonClientCursor(Window* window, | 287 void SetNonClientCursor(Window* window, |
288 mus::mojom::Cursor cursor_id) override; | 288 mus::mojom::Cursor cursor_id) override; |
289 void AddAccelerator(uint32_t id, | 289 void AddAccelerator(uint32_t id, |
290 mojom::EventMatcherPtr event_matcher, | 290 mojom::EventMatcherPtr event_matcher, |
291 const base::Callback<void(bool)>& callback) override; | 291 const base::Callback<void(bool)>& callback) override; |
292 void RemoveAccelerator(uint32_t id) override; | 292 void RemoveAccelerator(uint32_t id) override; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 uint32_t event_observer_id_ = 0u; | 352 uint32_t event_observer_id_ = 0u; |
353 | 353 |
354 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 354 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
355 | 355 |
356 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 356 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
357 }; | 357 }; |
358 | 358 |
359 } // namespace mus | 359 } // namespace mus |
360 | 360 |
361 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 361 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
OLD | NEW |