| 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/aura/wm_shell_aura.h" | 5 #include "ash/aura/wm_shell_aura.h" |
| 6 | 6 |
| 7 #include "ash/aura/wm_window_aura.h" | 7 #include "ash/aura/wm_window_aura.h" |
| 8 #include "ash/common/session/session_state_delegate.h" | 8 #include "ash/common/session/session_state_delegate.h" |
| 9 #include "ash/common/shell_observer.h" | 9 #include "ash/common/shell_observer.h" |
| 10 #include "ash/common/wm/mru_window_tracker.h" | 10 #include "ash/common/wm/mru_window_tracker.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 92 } |
| 93 | 93 |
| 94 std::vector<WmWindow*> WmShellAura::GetAllRootWindows() { | 94 std::vector<WmWindow*> WmShellAura::GetAllRootWindows() { |
| 95 aura::Window::Windows root_windows = Shell::GetAllRootWindows(); | 95 aura::Window::Windows root_windows = Shell::GetAllRootWindows(); |
| 96 std::vector<WmWindow*> wm_windows(root_windows.size()); | 96 std::vector<WmWindow*> wm_windows(root_windows.size()); |
| 97 for (size_t i = 0; i < root_windows.size(); ++i) | 97 for (size_t i = 0; i < root_windows.size(); ++i) |
| 98 wm_windows[i] = WmWindowAura::Get(root_windows[i]); | 98 wm_windows[i] = WmWindowAura::Get(root_windows[i]); |
| 99 return wm_windows; | 99 return wm_windows; |
| 100 } | 100 } |
| 101 | 101 |
| 102 void WmShellAura::RecordUserMetricsAction(wm::WmUserMetricsAction action) { | 102 void WmShellAura::RecordUserMetricsAction(UserMetricsAction action) { |
| 103 return Shell::GetInstance()->metrics()->RecordUserMetricsAction(action); | 103 return Shell::GetInstance()->metrics()->RecordUserMetricsAction(action); |
| 104 } | 104 } |
| 105 | 105 |
| 106 std::unique_ptr<WindowResizer> WmShellAura::CreateDragWindowResizer( | 106 std::unique_ptr<WindowResizer> WmShellAura::CreateDragWindowResizer( |
| 107 std::unique_ptr<WindowResizer> next_window_resizer, | 107 std::unique_ptr<WindowResizer> next_window_resizer, |
| 108 wm::WindowState* window_state) { | 108 wm::WindowState* window_state) { |
| 109 return base::WrapUnique( | 109 return base::WrapUnique( |
| 110 DragWindowResizer::Create(next_window_resizer.release(), window_state)); | 110 DragWindowResizer::Create(next_window_resizer.release(), window_state)); |
| 111 } | 111 } |
| 112 | 112 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, | 195 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, |
| 196 OnDisplayConfigurationChanging()); | 196 OnDisplayConfigurationChanging()); |
| 197 } | 197 } |
| 198 | 198 |
| 199 void WmShellAura::OnDisplayConfigurationChanged() { | 199 void WmShellAura::OnDisplayConfigurationChanged() { |
| 200 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, | 200 FOR_EACH_OBSERVER(WmDisplayObserver, display_observers_, |
| 201 OnDisplayConfigurationChanged()); | 201 OnDisplayConfigurationChanged()); |
| 202 } | 202 } |
| 203 | 203 |
| 204 } // namespace ash | 204 } // namespace ash |
| OLD | NEW |