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_WS_WINDOW_TREE_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 void GetWindowTree( | 347 void GetWindowTree( |
348 Id window_id, | 348 Id window_id, |
349 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) | 349 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) |
350 override; | 350 override; |
351 void SetCapture(uint32_t change_id, Id window_id) override; | 351 void SetCapture(uint32_t change_id, Id window_id) override; |
352 void ReleaseCapture(uint32_t change_id, Id window_id) override; | 352 void ReleaseCapture(uint32_t change_id, Id window_id) override; |
353 void SetEventObserver(mojom::EventMatcherPtr matcher, | 353 void SetEventObserver(mojom::EventMatcherPtr matcher, |
354 uint32_t observer_id) override; | 354 uint32_t observer_id) override; |
355 void SetWindowBounds(uint32_t change_id, | 355 void SetWindowBounds(uint32_t change_id, |
356 Id window_id, | 356 Id window_id, |
357 mojo::RectPtr bounds) override; | 357 const gfx::Rect& bounds) override; |
358 void SetWindowVisibility(uint32_t change_id, | 358 void SetWindowVisibility(uint32_t change_id, |
359 Id window_id, | 359 Id window_id, |
360 bool visible) override; | 360 bool visible) override; |
361 void SetWindowProperty(uint32_t change_id, | 361 void SetWindowProperty(uint32_t change_id, |
362 Id transport_window_id, | 362 Id transport_window_id, |
363 const mojo::String& name, | 363 const mojo::String& name, |
364 mojo::Array<uint8_t> value) override; | 364 mojo::Array<uint8_t> value) override; |
365 void SetWindowOpacity(uint32_t change_id, | 365 void SetWindowOpacity(uint32_t change_id, |
366 Id window_id, | 366 Id window_id, |
367 float opacity) override; | 367 float opacity) override; |
(...skipping 11 matching lines...) Expand all Loading... |
379 mus::mojom::Cursor cursor_id) override; | 379 mus::mojom::Cursor cursor_id) override; |
380 void SetWindowTextInputState(Id transport_window_id, | 380 void SetWindowTextInputState(Id transport_window_id, |
381 mojo::TextInputStatePtr state) override; | 381 mojo::TextInputStatePtr state) override; |
382 void SetImeVisibility(Id transport_window_id, | 382 void SetImeVisibility(Id transport_window_id, |
383 bool visible, | 383 bool visible, |
384 mojo::TextInputStatePtr state) override; | 384 mojo::TextInputStatePtr state) override; |
385 void OnWindowInputEventAck(uint32_t event_id, | 385 void OnWindowInputEventAck(uint32_t event_id, |
386 mojom::EventResult result) override; | 386 mojom::EventResult result) override; |
387 void SetClientArea( | 387 void SetClientArea( |
388 Id transport_window_id, | 388 Id transport_window_id, |
389 mojo::InsetsPtr insets, | 389 const gfx::Insets& insets, |
390 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override; | 390 mojo::Array<gfx::Rect> transport_additional_client_areas) override; |
391 void SetHitTestMask(Id transport_window_id, mojo::RectPtr mask) override; | 391 void SetHitTestMask(Id transport_window_id, const gfx::Rect& mask) override; |
392 void GetWindowManagerClient( | 392 void GetWindowManagerClient( |
393 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) | 393 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) |
394 override; | 394 override; |
395 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) | 395 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) |
396 override; | 396 override; |
397 | 397 |
398 // mojom::WindowManagerClient: | 398 // mojom::WindowManagerClient: |
399 void AddAccelerator(uint32_t id, | 399 void AddAccelerator(uint32_t id, |
400 mojom::EventMatcherPtr event_matcher, | 400 mojom::EventMatcherPtr event_matcher, |
401 const AddAcceleratorCallback& callback) override; | 401 const AddAcceleratorCallback& callback) override; |
402 void RemoveAccelerator(uint32_t id) override; | 402 void RemoveAccelerator(uint32_t id) override; |
403 void AddActivationParent(Id transport_window_id) override; | 403 void AddActivationParent(Id transport_window_id) override; |
404 void RemoveActivationParent(Id transport_window_id) override; | 404 void RemoveActivationParent(Id transport_window_id) override; |
405 void ActivateNextWindow() override; | 405 void ActivateNextWindow() override; |
406 void SetUnderlaySurfaceOffsetAndExtendedHitArea( | 406 void SetUnderlaySurfaceOffsetAndExtendedHitArea( |
407 Id window_id, | 407 Id window_id, |
408 int32_t x_offset, | 408 int32_t x_offset, |
409 int32_t y_offset, | 409 int32_t y_offset, |
410 mojo::InsetsPtr hit_area) override; | 410 const gfx::Insets& hit_area) override; |
411 void WmResponse(uint32_t change_id, bool response) override; | 411 void WmResponse(uint32_t change_id, bool response) override; |
412 void WmRequestClose(Id transport_window_id) override; | 412 void WmRequestClose(Id transport_window_id) override; |
413 void WmSetFrameDecorationValues( | 413 void WmSetFrameDecorationValues( |
414 mojom::FrameDecorationValuesPtr values) override; | 414 mojom::FrameDecorationValuesPtr values) override; |
415 void WmSetNonClientCursor(uint32_t window_id, | 415 void WmSetNonClientCursor(uint32_t window_id, |
416 mojom::Cursor cursor_id) override; | 416 mojom::Cursor cursor_id) override; |
417 void OnWmCreatedTopLevelWindow(uint32_t change_id, | 417 void OnWmCreatedTopLevelWindow(uint32_t change_id, |
418 Id transport_window_id) override; | 418 Id transport_window_id) override; |
419 | 419 |
420 // AccessPolicyDelegate: | 420 // AccessPolicyDelegate: |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 std::unique_ptr<WaitingForTopLevelWindowInfo> | 475 std::unique_ptr<WaitingForTopLevelWindowInfo> |
476 waiting_for_top_level_window_info_; | 476 waiting_for_top_level_window_info_; |
477 | 477 |
478 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 478 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
479 }; | 479 }; |
480 | 480 |
481 } // namespace ws | 481 } // namespace ws |
482 } // namespace mus | 482 } // namespace mus |
483 | 483 |
484 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 484 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
OLD | NEW |