Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: ash/aura/wm_shell_aura.cc

Issue 2063333002: mash: Move all ash UMA metrics to //ash/common/metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/metrics/user_metrics_action.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/metrics/user_metrics_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698