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

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: 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
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698