| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // Called to stack the native window above the native window of |window|. | 49 // Called to stack the native window above the native window of |window|. |
| 50 virtual void OnWindowTreeHostStackAbove( | 50 virtual void OnWindowTreeHostStackAbove( |
| 51 WindowTreeHostMus* window_tree_host, | 51 WindowTreeHostMus* window_tree_host, |
| 52 Window* window) = 0; | 52 Window* window) = 0; |
| 53 | 53 |
| 54 // Called to stack the native window above other native windows. | 54 // Called to stack the native window above other native windows. |
| 55 virtual void OnWindowTreeHostStackAtTop( | 55 virtual void OnWindowTreeHostStackAtTop( |
| 56 WindowTreeHostMus* window_tree_host) = 0; | 56 WindowTreeHostMus* window_tree_host) = 0; |
| 57 | 57 |
| 58 // Called to start a move loop, where the window manager will take over |
| 59 // moving a window during a drag. |
| 60 virtual void OnWindowTreeHostPerformWindowMove( |
| 61 WindowTreeHostMus* window_tree_host, |
| 62 ui::mojom::MoveLoopSource mus_source, |
| 63 const gfx::Point& cursor_location, |
| 64 const base::Callback<void(bool)>& callback) = 0; |
| 65 |
| 66 // Called to cancel a move loop. |
| 67 virtual void OnWindowTreeHostCancelWindowMove( |
| 68 WindowTreeHostMus* window_tree_host) = 0; |
| 69 |
| 58 // Called when a WindowTreeHostMus is created without a WindowPort. | 70 // Called when a WindowTreeHostMus is created without a WindowPort. |
| 59 // TODO: this should take an unordered_map, see http://crbug.com/670515. | 71 // TODO: this should take an unordered_map, see http://crbug.com/670515. |
| 60 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel( | 72 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel( |
| 61 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; | 73 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; |
| 62 | 74 |
| 63 // Called from WindowTreeHostMus's constructor once the Window has been | 75 // Called from WindowTreeHostMus's constructor once the Window has been |
| 64 // created. | 76 // created. |
| 65 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; | 77 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; |
| 66 | 78 |
| 67 protected: | 79 protected: |
| 68 virtual ~WindowTreeHostMusDelegate() {} | 80 virtual ~WindowTreeHostMusDelegate() {} |
| 69 }; | 81 }; |
| 70 | 82 |
| 71 } // namespace aura | 83 } // namespace aura |
| 72 | 84 |
| 73 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ | 85 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ |
| OLD | NEW |