Chromium Code Reviews| 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/common/test/wm_shell_test_api.h" | 5 #include "ash/common/test/wm_shell_test_api.h" |
| 6 | 6 |
| 7 #include "ash/common/system/tray/system_tray_delegate.h" | 7 #include "ash/common/system/tray/system_tray_delegate.h" |
| 8 #include "ash/common/wm_shell.h" | 8 #include "ash/common/wm_shell.h" |
| 9 #include "ash/public/interfaces/new_window.mojom.h" | |
| 9 | 10 |
| 10 namespace ash { | 11 namespace ash { |
| 11 | 12 |
| 12 WmShellTestApi::WmShellTestApi() {} | 13 WmShellTestApi::WmShellTestApi() {} |
| 13 | 14 |
| 14 WmShellTestApi::~WmShellTestApi() {} | 15 WmShellTestApi::~WmShellTestApi() {} |
| 15 | 16 |
| 16 void WmShellTestApi::SetSystemTrayDelegate( | 17 void WmShellTestApi::SetSystemTrayDelegate( |
| 17 std::unique_ptr<SystemTrayDelegate> delegate) { | 18 std::unique_ptr<SystemTrayDelegate> delegate) { |
| 18 WmShell::Get()->SetSystemTrayDelegate(std::move(delegate)); | 19 WmShell::Get()->SetSystemTrayDelegate(std::move(delegate)); |
| 19 } | 20 } |
| 20 | 21 |
| 22 void WmShellTestApi::SetNewWindowClient( | |
| 23 std::unique_ptr<mojom::NewWindowClient> client) { | |
| 24 WmShell::Get()->SetNewWindowClient(std::move(client)); | |
|
James Cook
2016/10/21 22:22:30
Maybe directly access the member variable and get
Elliot Glaysher
2016/10/21 22:45:56
Done.
| |
| 25 } | |
| 26 | |
| 21 } // namespace ash | 27 } // namespace ash |
| OLD | NEW |