| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 } | 230 } |
| 231 | 231 |
| 232 std::vector<WmWindow*> WmShellMus::GetAllRootWindows() { | 232 std::vector<WmWindow*> WmShellMus::GetAllRootWindows() { |
| 233 std::vector<WmWindow*> wm_windows(root_window_controllers_.size()); | 233 std::vector<WmWindow*> wm_windows(root_window_controllers_.size()); |
| 234 for (size_t i = 0; i < root_window_controllers_.size(); ++i) | 234 for (size_t i = 0; i < root_window_controllers_.size(); ++i) |
| 235 wm_windows[i] = root_window_controllers_[i]->GetWindow(); | 235 wm_windows[i] = root_window_controllers_[i]->GetWindow(); |
| 236 return wm_windows; | 236 return wm_windows; |
| 237 } | 237 } |
| 238 | 238 |
| 239 void WmShellMus::RecordUserMetricsAction(UserMetricsAction action) { | 239 void WmShellMus::RecordUserMetricsAction(UserMetricsAction action) { |
| 240 // TODO: http://crbug.com/616581. |
| 240 NOTIMPLEMENTED(); | 241 NOTIMPLEMENTED(); |
| 241 } | 242 } |
| 242 | 243 |
| 244 void WmShellMus::RecordTaskSwitchMetric(TaskSwitchSource source) { |
| 245 // TODO: http://crbug.com/616581. |
| 246 NOTIMPLEMENTED(); |
| 247 } |
| 248 |
| 243 std::unique_ptr<WindowResizer> WmShellMus::CreateDragWindowResizer( | 249 std::unique_ptr<WindowResizer> WmShellMus::CreateDragWindowResizer( |
| 244 std::unique_ptr<WindowResizer> next_window_resizer, | 250 std::unique_ptr<WindowResizer> next_window_resizer, |
| 245 wm::WindowState* window_state) { | 251 wm::WindowState* window_state) { |
| 246 return base::WrapUnique( | 252 return base::WrapUnique( |
| 247 new DragWindowResizer(std::move(next_window_resizer), window_state)); | 253 new DragWindowResizer(std::move(next_window_resizer), window_state)); |
| 248 } | 254 } |
| 249 | 255 |
| 250 std::unique_ptr<wm::MaximizeModeEventHandler> | 256 std::unique_ptr<wm::MaximizeModeEventHandler> |
| 251 WmShellMus::CreateMaximizeModeEventHandler() { | 257 WmShellMus::CreateMaximizeModeEventHandler() { |
| 252 // TODO: need support for window manager to get events before client: | 258 // TODO: need support for window manager to get events before client: |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 OnWindowActivated(gained_active, lost_active)); | 338 OnWindowActivated(gained_active, lost_active)); |
| 333 } | 339 } |
| 334 | 340 |
| 335 void WmShellMus::OnDidDestroyClient(::ui::WindowTreeClient* client) { | 341 void WmShellMus::OnDidDestroyClient(::ui::WindowTreeClient* client) { |
| 336 DCHECK_EQ(client, client_); | 342 DCHECK_EQ(client, client_); |
| 337 RemoveClientObserver(); | 343 RemoveClientObserver(); |
| 338 } | 344 } |
| 339 | 345 |
| 340 } // namespace mus | 346 } // namespace mus |
| 341 } // namespace ash | 347 } // namespace ash |
| OLD | NEW |