OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ASH_MUS_WINDOW_MANAGER_H_ | 5 #ifndef ASH_MUS_WINDOW_MANAGER_H_ |
6 #define ASH_MUS_WINDOW_MANAGER_H_ | 6 #define ASH_MUS_WINDOW_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 const std::string& name, | 97 const std::string& name, |
98 std::unique_ptr<std::vector<uint8_t>>* new_data) override; | 98 std::unique_ptr<std::vector<uint8_t>>* new_data) override; |
99 ::mus::Window* OnWmCreateTopLevelWindow( | 99 ::mus::Window* OnWmCreateTopLevelWindow( |
100 std::map<std::string, std::vector<uint8_t>>* properties) override; | 100 std::map<std::string, std::vector<uint8_t>>* properties) override; |
101 void OnWmClientJankinessChanged( | 101 void OnWmClientJankinessChanged( |
102 const std::set<::mus::Window*>& client_windows, | 102 const std::set<::mus::Window*>& client_windows, |
103 bool not_responding) override; | 103 bool not_responding) override; |
104 void OnWmNewDisplay(::mus::Window* window, | 104 void OnWmNewDisplay(::mus::Window* window, |
105 const display::Display& display) override; | 105 const display::Display& display) override; |
106 void OnAccelerator(uint32_t id, const ui::Event& event) override; | 106 void OnAccelerator(uint32_t id, const ui::Event& event) override; |
| 107 void OnWmPerformMoveLoop(::mus::Window* window, |
| 108 ::mus::mojom::MoveLoopSource source, |
| 109 const gfx::Point& cursor_location, |
| 110 const base::Callback<void(bool)>& on_done) override; |
| 111 void OnWmCancelMoveLoop(::mus::Window* window) override; |
107 | 112 |
108 // TODO(sky): this is unfortunate, remove. | 113 // TODO(sky): this is unfortunate, remove. |
109 WindowManagerApplication* window_manager_app_; | 114 WindowManagerApplication* window_manager_app_; |
110 | 115 |
111 shell::Connector* connector_; | 116 shell::Connector* connector_; |
112 | 117 |
113 ::mus::WindowTreeClient* window_tree_client_ = nullptr; | 118 ::mus::WindowTreeClient* window_tree_client_ = nullptr; |
114 | 119 |
115 ::mus::WindowManagerClient* window_manager_client_ = nullptr; | 120 ::mus::WindowManagerClient* window_manager_client_ = nullptr; |
116 | 121 |
117 std::unique_ptr<ShadowController> shadow_controller_; | 122 std::unique_ptr<ShadowController> shadow_controller_; |
118 | 123 |
119 std::set<std::unique_ptr<RootWindowController>> root_window_controllers_; | 124 std::set<std::unique_ptr<RootWindowController>> root_window_controllers_; |
120 | 125 |
121 base::ObserverList<RootWindowsObserver> root_windows_observers_; | 126 base::ObserverList<RootWindowsObserver> root_windows_observers_; |
122 | 127 |
123 std::unique_ptr<display::Screen> screen_; | 128 std::unique_ptr<display::Screen> screen_; |
124 | 129 |
125 std::unique_ptr<WmShellMus> shell_; | 130 std::unique_ptr<WmShellMus> shell_; |
126 | 131 |
127 std::unique_ptr<WmLookupMus> lookup_; | 132 std::unique_ptr<WmLookupMus> lookup_; |
128 | 133 |
129 DISALLOW_COPY_AND_ASSIGN(WindowManager); | 134 DISALLOW_COPY_AND_ASSIGN(WindowManager); |
130 }; | 135 }; |
131 | 136 |
132 } // namespace mus | 137 } // namespace mus |
133 } // namespace ash | 138 } // namespace ash |
134 | 139 |
135 #endif // ASH_MUS_WINDOW_MANAGER_H_ | 140 #endif // ASH_MUS_WINDOW_MANAGER_H_ |
OLD | NEW |