| 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 UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void ConnectViaWindowTreeFactory(service_manager::Connector* connector); | 94 void ConnectViaWindowTreeFactory(service_manager::Connector* connector); |
| 95 | 95 |
| 96 // Establishes the connection by way of WindowManagerWindowTreeFactory. | 96 // Establishes the connection by way of WindowManagerWindowTreeFactory. |
| 97 void ConnectAsWindowManager(service_manager::Connector* connector); | 97 void ConnectAsWindowManager(service_manager::Connector* connector); |
| 98 | 98 |
| 99 bool connected() const { return tree_ != nullptr; } | 99 bool connected() const { return tree_ != nullptr; } |
| 100 ClientSpecificId client_id() const { return client_id_; } | 100 ClientSpecificId client_id() const { return client_id_; } |
| 101 | 101 |
| 102 client::CaptureClient* GetCaptureClient(); | 102 client::CaptureClient* GetCaptureClient(); |
| 103 | 103 |
| 104 void SetClientArea(Window* window, | |
| 105 const gfx::Insets& client_area, | |
| 106 const std::vector<gfx::Rect>& additional_client_areas); | |
| 107 void SetHitTestMask(Window* window, const gfx::Rect& mask); | |
| 108 void ClearHitTestMask(Window* window); | |
| 109 void SetCanFocus(Window* window, bool can_focus); | 104 void SetCanFocus(Window* window, bool can_focus); |
| 110 void SetCanAcceptDrops(Id window_id, bool can_accept_drops); | 105 void SetCanAcceptDrops(Id window_id, bool can_accept_drops); |
| 111 void SetCanAcceptEvents(Id window_id, bool can_accept_events); | 106 void SetCanAcceptEvents(Id window_id, bool can_accept_events); |
| 112 void SetPredefinedCursor(WindowMus* window, | 107 void SetPredefinedCursor(WindowMus* window, |
| 113 ui::mojom::Cursor old_cursor, | 108 ui::mojom::Cursor old_cursor, |
| 114 ui::mojom::Cursor new_cursor); | 109 ui::mojom::Cursor new_cursor); |
| 115 void SetWindowTextInputState(WindowMus* window, | 110 void SetWindowTextInputState(WindowMus* window, |
| 116 mojo::TextInputStatePtr state); | 111 mojo::TextInputStatePtr state); |
| 117 void SetImeVisibility(WindowMus* window, | 112 void SetImeVisibility(WindowMus* window, |
| 118 bool visible, | 113 bool visible, |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 void RemoveActivationParent(Window* window) override; | 408 void RemoveActivationParent(Window* window) override; |
| 414 void ActivateNextWindow() override; | 409 void ActivateNextWindow() override; |
| 415 void SetUnderlaySurfaceOffsetAndExtendedHitArea( | 410 void SetUnderlaySurfaceOffsetAndExtendedHitArea( |
| 416 Window* window, | 411 Window* window, |
| 417 const gfx::Vector2d& offset, | 412 const gfx::Vector2d& offset, |
| 418 const gfx::Insets& hit_area) override; | 413 const gfx::Insets& hit_area) override; |
| 419 | 414 |
| 420 // Overriden from WindowTreeHostMusDelegate: | 415 // Overriden from WindowTreeHostMusDelegate: |
| 421 void OnWindowTreeHostBoundsWillChange(WindowTreeHostMus* window_tree_host, | 416 void OnWindowTreeHostBoundsWillChange(WindowTreeHostMus* window_tree_host, |
| 422 const gfx::Rect& bounds) override; | 417 const gfx::Rect& bounds) override; |
| 418 void OnWindowTreeHostClientAreaWillChange( |
| 419 WindowTreeHostMus* window_tree_host, |
| 420 const gfx::Insets& client_area, |
| 421 const std::vector<gfx::Rect>& additional_client_areas) override; |
| 422 void OnWindowTreeHostHitTestMaskWillChange( |
| 423 WindowTreeHostMus* window_tree_host, |
| 424 const base::Optional<gfx::Rect>& mask_rect) override; |
| 423 std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel() override; | 425 std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel() override; |
| 424 void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) override; | 426 void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) override; |
| 425 | 427 |
| 426 // Override from client::TransientWindowClientObserver: | 428 // Override from client::TransientWindowClientObserver: |
| 427 void OnTransientChildWindowAdded(Window* parent, | 429 void OnTransientChildWindowAdded(Window* parent, |
| 428 Window* transient_child) override; | 430 Window* transient_child) override; |
| 429 void OnTransientChildWindowRemoved(Window* parent, | 431 void OnTransientChildWindowRemoved(Window* parent, |
| 430 Window* transient_child) override; | 432 Window* transient_child) override; |
| 431 void OnWillRestackTransientChildAbove(Window* parent, | 433 void OnWillRestackTransientChildAbove(Window* parent, |
| 432 Window* transient_child) override; | 434 Window* transient_child) override; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 std::unique_ptr<DragDropControllerMus> drag_drop_controller_; | 512 std::unique_ptr<DragDropControllerMus> drag_drop_controller_; |
| 511 | 513 |
| 512 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 514 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 513 | 515 |
| 514 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 516 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 515 }; | 517 }; |
| 516 | 518 |
| 517 } // namespace aura | 519 } // namespace aura |
| 518 | 520 |
| 519 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 521 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |