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 #include "ash/mus/window_manager.h" | 5 #include "ash/mus/window_manager.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 } | 213 } |
214 | 214 |
215 ::mus::Window* WindowManager::OnWmCreateTopLevelWindow( | 215 ::mus::Window* WindowManager::OnWmCreateTopLevelWindow( |
216 std::map<std::string, std::vector<uint8_t>>* properties) { | 216 std::map<std::string, std::vector<uint8_t>>* properties) { |
217 return NewTopLevelWindow(properties); | 217 return NewTopLevelWindow(properties); |
218 } | 218 } |
219 | 219 |
220 void WindowManager::OnWmClientJankinessChanged( | 220 void WindowManager::OnWmClientJankinessChanged( |
221 const std::set<::mus::Window*>& client_windows, | 221 const std::set<::mus::Window*>& client_windows, |
222 bool janky) { | 222 bool janky) { |
223 for (auto window : client_windows) | 223 for (auto* window : client_windows) |
224 SetWindowIsJanky(window, janky); | 224 SetWindowIsJanky(window, janky); |
225 } | 225 } |
226 | 226 |
227 void WindowManager::OnWmNewDisplay(::mus::Window* window, | 227 void WindowManager::OnWmNewDisplay(::mus::Window* window, |
228 const display::Display& display) { | 228 const display::Display& display) { |
229 CreateRootWindowController(window, display); | 229 CreateRootWindowController(window, display); |
230 } | 230 } |
231 | 231 |
232 void WindowManager::OnAccelerator(uint32_t id, const ui::Event& event) { | 232 void WindowManager::OnAccelerator(uint32_t id, const ui::Event& event) { |
233 switch (id) { | 233 switch (id) { |
234 case kWindowSwitchAccelerator: | 234 case kWindowSwitchAccelerator: |
235 window_manager_client()->ActivateNextWindow(); | 235 window_manager_client()->ActivateNextWindow(); |
236 break; | 236 break; |
237 default: | 237 default: |
238 window_manager_app_->OnAccelerator(id, event); | 238 window_manager_app_->OnAccelerator(id, event); |
239 break; | 239 break; |
240 } | 240 } |
241 } | 241 } |
242 | 242 |
243 } // namespace mus | 243 } // namespace mus |
244 } // namespace ash | 244 } // namespace ash |
OLD | NEW |