OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_HOST_MUS_DELEGATE_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ |
6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ | 6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 virtual void OnWindowTreeHostPerformWindowMove( | 64 virtual void OnWindowTreeHostPerformWindowMove( |
65 WindowTreeHostMus* window_tree_host, | 65 WindowTreeHostMus* window_tree_host, |
66 ui::mojom::MoveLoopSource mus_source, | 66 ui::mojom::MoveLoopSource mus_source, |
67 const gfx::Point& cursor_location, | 67 const gfx::Point& cursor_location, |
68 const base::Callback<void(bool)>& callback) = 0; | 68 const base::Callback<void(bool)>& callback) = 0; |
69 | 69 |
70 // Called to cancel a move loop. | 70 // Called to cancel a move loop. |
71 virtual void OnWindowTreeHostCancelWindowMove( | 71 virtual void OnWindowTreeHostCancelWindowMove( |
72 WindowTreeHostMus* window_tree_host) = 0; | 72 WindowTreeHostMus* window_tree_host) = 0; |
73 | 73 |
| 74 // Called to move the location of the cursor. |
| 75 virtual void OnWindowTreeHostMoveCursorToDisplayLocation( |
| 76 const gfx::Point& location_in_pixels, |
| 77 int64_t display_id) = 0; |
| 78 |
74 // Called when a WindowTreeHostMus is created without a WindowPort. | 79 // Called when a WindowTreeHostMus is created without a WindowPort. |
75 // TODO: this should take an unordered_map, see http://crbug.com/670515. | 80 // TODO: this should take an unordered_map, see http://crbug.com/670515. |
76 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel( | 81 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel( |
77 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; | 82 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; |
78 | 83 |
79 // Called from WindowTreeHostMus's constructor once the Window has been | 84 // Called from WindowTreeHostMus's constructor once the Window has been |
80 // created. | 85 // created. |
81 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; | 86 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; |
82 | 87 |
83 protected: | 88 protected: |
84 virtual ~WindowTreeHostMusDelegate() {} | 89 virtual ~WindowTreeHostMusDelegate() {} |
85 }; | 90 }; |
86 | 91 |
87 } // namespace aura | 92 } // namespace aura |
88 | 93 |
89 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ | 94 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ |
OLD | NEW |