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

Side by Side Diff: ash/mus/bridge/wm_shell_mus.cc

Issue 2160833002: Adds WmShell::RecordTaskSwitchMetric() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 5 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/mus/bridge/wm_shell_mus.h ('k') | ash/wm/window_cycle_controller.cc » ('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/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
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
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
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_shell_mus.h ('k') | ash/wm/window_cycle_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698