| 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 #include "ash/mus/bridge/wm_shell_mus.h" | 5 #include "ash/mus/bridge/wm_shell_mus.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/common/display/display_info.h" | 9 #include "ash/common/display/display_info.h" |
| 10 #include "ash/common/keyboard/keyboard_ui.h" | 10 #include "ash/common/keyboard/keyboard_ui.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 } | 231 } |
| 232 | 232 |
| 233 std::vector<WmWindow*> WmShellMus::GetAllRootWindows() { | 233 std::vector<WmWindow*> WmShellMus::GetAllRootWindows() { |
| 234 std::vector<WmWindow*> wm_windows(root_window_controllers_.size()); | 234 std::vector<WmWindow*> wm_windows(root_window_controllers_.size()); |
| 235 for (size_t i = 0; i < root_window_controllers_.size(); ++i) | 235 for (size_t i = 0; i < root_window_controllers_.size(); ++i) |
| 236 wm_windows[i] = root_window_controllers_[i]->GetWindow(); | 236 wm_windows[i] = root_window_controllers_[i]->GetWindow(); |
| 237 return wm_windows; | 237 return wm_windows; |
| 238 } | 238 } |
| 239 | 239 |
| 240 void WmShellMus::RecordUserMetricsAction(UserMetricsAction action) { | 240 void WmShellMus::RecordUserMetricsAction(UserMetricsAction action) { |
| 241 // TODO: http://crbug.com/616581. |
| 241 NOTIMPLEMENTED(); | 242 NOTIMPLEMENTED(); |
| 242 } | 243 } |
| 243 | 244 |
| 245 void WmShellMus::RecordTaskSwitchMetric(TaskSwitchSource source) { |
| 246 // TODO: http://crbug.com/616581. |
| 247 NOTIMPLEMENTED(); |
| 248 } |
| 249 |
| 244 std::unique_ptr<WindowResizer> WmShellMus::CreateDragWindowResizer( | 250 std::unique_ptr<WindowResizer> WmShellMus::CreateDragWindowResizer( |
| 245 std::unique_ptr<WindowResizer> next_window_resizer, | 251 std::unique_ptr<WindowResizer> next_window_resizer, |
| 246 wm::WindowState* window_state) { | 252 wm::WindowState* window_state) { |
| 247 return base::WrapUnique( | 253 return base::WrapUnique( |
| 248 new DragWindowResizer(std::move(next_window_resizer), window_state)); | 254 new DragWindowResizer(std::move(next_window_resizer), window_state)); |
| 249 } | 255 } |
| 250 | 256 |
| 251 std::unique_ptr<WindowCycleEventFilter> | 257 std::unique_ptr<WindowCycleEventFilter> |
| 252 WmShellMus::CreateWindowCycleEventFilter() { | 258 WmShellMus::CreateWindowCycleEventFilter() { |
| 253 // TODO: implement me, http://crbug.com/629191. | 259 // TODO: implement me, http://crbug.com/629191. |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 OnWindowActivated(gained_active, lost_active)); | 345 OnWindowActivated(gained_active, lost_active)); |
| 340 } | 346 } |
| 341 | 347 |
| 342 void WmShellMus::OnDidDestroyClient(::ui::WindowTreeClient* client) { | 348 void WmShellMus::OnDidDestroyClient(::ui::WindowTreeClient* client) { |
| 343 DCHECK_EQ(client, client_); | 349 DCHECK_EQ(client, client_); |
| 344 RemoveClientObserver(); | 350 RemoveClientObserver(); |
| 345 } | 351 } |
| 346 | 352 |
| 347 } // namespace mus | 353 } // namespace mus |
| 348 } // namespace ash | 354 } // namespace ash |
| OLD | NEW |