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

Side by Side Diff: ash/common/test/wm_shell_test_api.cc

Issue 2434463004: mash: Move directly linked NewWindowDelegate to mojom::NewWindowClient. (Closed)
Patch Set: Rebase to ToT Created 4 years, 1 month 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/test/wm_shell_test_api.h ('k') | ash/common/wm_shell.h » ('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/test/wm_shell_test_api.h" 5 #include "ash/common/test/wm_shell_test_api.h"
6 6
7 #include <utility>
8
7 #include "ash/common/system/tray/system_tray_delegate.h" 9 #include "ash/common/system/tray/system_tray_delegate.h"
8 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
11 #include "ash/public/interfaces/new_window.mojom.h"
9 12
10 namespace ash { 13 namespace ash {
11 14
12 WmShellTestApi::WmShellTestApi() {} 15 WmShellTestApi::WmShellTestApi() {}
13 16
14 WmShellTestApi::~WmShellTestApi() {} 17 WmShellTestApi::~WmShellTestApi() {}
15 18
16 void WmShellTestApi::SetSystemTrayDelegate( 19 void WmShellTestApi::SetSystemTrayDelegate(
17 std::unique_ptr<SystemTrayDelegate> delegate) { 20 std::unique_ptr<SystemTrayDelegate> delegate) {
18 WmShell::Get()->SetSystemTrayDelegate(std::move(delegate)); 21 WmShell::Get()->SetSystemTrayDelegate(std::move(delegate));
19 } 22 }
20 23
24 void WmShellTestApi::SetNewWindowClient(
25 std::unique_ptr<mojom::NewWindowClient> client) {
26 WmShell::Get()->new_window_client_ = std::move(client);
27 }
28
21 } // namespace ash 29 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/test/wm_shell_test_api.h ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698