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

Side by Side Diff: ash/common/wm_shell.cc

Issue 2408273002: mash: Port TrayUpdateTest to AshTest (Closed)
Patch Set: WmShellTestApi Created 4 years, 2 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/common/wm_shell.h ('k') | ash/mus/test/wm_test_helper.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/common/wm_shell.h" 5 #include "ash/common/wm_shell.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/common/accelerators/accelerator_controller.h" 9 #include "ash/common/accelerators/accelerator_controller.h"
10 #include "ash/common/accelerators/ash_focus_manager_factory.h" 10 #include "ash/common/accelerators/ash_focus_manager_factory.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 return delegate_->GetAppListPresenter()->GetTargetVisibility(); 327 return delegate_->GetAppListPresenter()->GetTargetVisibility();
328 } 328 }
329 329
330 void WmShell::SetKeyboardUI(std::unique_ptr<KeyboardUI> keyboard_ui) { 330 void WmShell::SetKeyboardUI(std::unique_ptr<KeyboardUI> keyboard_ui) {
331 keyboard_ui_ = std::move(keyboard_ui); 331 keyboard_ui_ = std::move(keyboard_ui);
332 } 332 }
333 333
334 void WmShell::SetSystemTrayDelegate( 334 void WmShell::SetSystemTrayDelegate(
335 std::unique_ptr<SystemTrayDelegate> delegate) { 335 std::unique_ptr<SystemTrayDelegate> delegate) {
336 DCHECK(delegate); 336 DCHECK(delegate);
337 DCHECK(!system_tray_delegate_);
338 // TODO(jamescook): Create via ShellDelegate once it moves to //ash/common.
339 system_tray_delegate_ = std::move(delegate); 337 system_tray_delegate_ = std::move(delegate);
340 system_tray_delegate_->Initialize(); 338 system_tray_delegate_->Initialize();
341 #if defined(OS_CHROMEOS) 339 #if defined(OS_CHROMEOS)
342 logout_confirmation_controller_.reset(new LogoutConfirmationController( 340 logout_confirmation_controller_.reset(new LogoutConfirmationController(
343 base::Bind(&SystemTrayDelegate::SignOut, 341 base::Bind(&SystemTrayDelegate::SignOut,
344 base::Unretained(system_tray_delegate_.get())))); 342 base::Unretained(system_tray_delegate_.get()))));
345 #endif 343 #endif
346 } 344 }
347 345
348 void WmShell::DeleteSystemTrayDelegate() { 346 void WmShell::DeleteSystemTrayDelegate() {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 void WmShell::DeleteToastManager() { 378 void WmShell::DeleteToastManager() {
381 toast_manager_.reset(); 379 toast_manager_.reset();
382 } 380 }
383 381
384 void WmShell::SetAcceleratorController( 382 void WmShell::SetAcceleratorController(
385 std::unique_ptr<AcceleratorController> accelerator_controller) { 383 std::unique_ptr<AcceleratorController> accelerator_controller) {
386 accelerator_controller_ = std::move(accelerator_controller); 384 accelerator_controller_ = std::move(accelerator_controller);
387 } 385 }
388 386
389 } // namespace ash 387 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/mus/test/wm_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698