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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/system/tray/system_tray_delegate.h" | |
10 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
11 #include "ash/public/interfaces/new_window.mojom.h" | 10 #include "ash/public/interfaces/new_window.mojom.h" |
| 11 #include "ash/system/tray/system_tray_delegate.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 | 14 |
15 WmShellTestApi::WmShellTestApi() {} | 15 WmShellTestApi::WmShellTestApi() {} |
16 | 16 |
17 WmShellTestApi::~WmShellTestApi() {} | 17 WmShellTestApi::~WmShellTestApi() {} |
18 | 18 |
19 void WmShellTestApi::SetSystemTrayDelegate( | 19 void WmShellTestApi::SetSystemTrayDelegate( |
20 std::unique_ptr<SystemTrayDelegate> delegate) { | 20 std::unique_ptr<SystemTrayDelegate> delegate) { |
21 WmShell::Get()->SetSystemTrayDelegate(std::move(delegate)); | 21 WmShell::Get()->SetSystemTrayDelegate(std::move(delegate)); |
22 } | 22 } |
23 | 23 |
24 } // namespace ash | 24 } // namespace ash |
OLD | NEW |