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

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

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/test_new_window_client.cc ('k') | ash/common/test/wm_shell_test_api.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 #ifndef ASH_COMMON_TEST_WM_SHELL_TEST_API_H_ 5 #ifndef ASH_COMMON_TEST_WM_SHELL_TEST_API_H_
6 #define ASH_COMMON_TEST_WM_SHELL_TEST_API_H_ 6 #define ASH_COMMON_TEST_WM_SHELL_TEST_API_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace ash { 12 namespace ash {
13 13
14 class SystemTrayDelegate; 14 class SystemTrayDelegate;
15 15
16 namespace mojom {
17 class NewWindowClient;
18 }
19
16 // Test API to access the internal state of the singleton WmShell. 20 // Test API to access the internal state of the singleton WmShell.
17 class WmShellTestApi { 21 class WmShellTestApi {
18 public: 22 public:
19 WmShellTestApi(); 23 WmShellTestApi();
20 ~WmShellTestApi(); 24 ~WmShellTestApi();
21 25
22 void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate); 26 void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate);
23 27
28 void SetNewWindowClient(std::unique_ptr<mojom::NewWindowClient> client);
29
24 private: 30 private:
25 DISALLOW_COPY_AND_ASSIGN(WmShellTestApi); 31 DISALLOW_COPY_AND_ASSIGN(WmShellTestApi);
26 }; 32 };
27 33
28 } // namespace ash 34 } // namespace ash
29 35
30 #endif // ASH_COMMON_TEST_WM_SHELL_TEST_API_H_ 36 #endif // ASH_COMMON_TEST_WM_SHELL_TEST_API_H_
OLDNEW
« no previous file with comments | « ash/common/test/test_new_window_client.cc ('k') | ash/common/test/wm_shell_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698