| 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 OnWindowTreeHostMoveCursorToScreenLocationInPixels( |
| 76 const gfx::Point& location_in_pixels) = 0; |
| 77 |
| 74 // Called when a WindowTreeHostMus is created without a WindowPort. | 78 // Called when a WindowTreeHostMus is created without a WindowPort. |
| 75 // TODO: this should take an unordered_map, see http://crbug.com/670515. | 79 // TODO: this should take an unordered_map, see http://crbug.com/670515. |
| 76 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel( | 80 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel( |
| 77 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; | 81 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; |
| 78 | 82 |
| 79 // Called from WindowTreeHostMus's constructor once the Window has been | 83 // Called from WindowTreeHostMus's constructor once the Window has been |
| 80 // created. | 84 // created. |
| 81 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; | 85 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; |
| 82 | 86 |
| 83 protected: | 87 protected: |
| 84 virtual ~WindowTreeHostMusDelegate() {} | 88 virtual ~WindowTreeHostMusDelegate() {} |
| 85 }; | 89 }; |
| 86 | 90 |
| 87 } // namespace aura | 91 } // namespace aura |
| 88 | 92 |
| 89 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ | 93 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ |
| OLD | NEW |