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

Side by Side Diff: ash/common/test/test_new_window_client.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/BUILD.gn ('k') | ash/common/test/test_new_window_client.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_MUS_NEW_WINDOW_DELEGATE_MUS_H_ 5 #ifndef ASH_COMMON_TEST_TEST_NEW_WINDOW_CLIENT_H_
6 #define ASH_MUS_NEW_WINDOW_DELEGATE_MUS_H_ 6 #define ASH_COMMON_TEST_TEST_NEW_WINDOW_CLIENT_H_
7 7
8 #include "ash/common/new_window_delegate.h" 8 #include "ash/public/interfaces/new_window.mojom.h"
9 #include "base/macros.h"
10 9
11 namespace ash { 10 namespace ash {
12 namespace mus {
13 11
14 class NewWindowDelegateMus : public NewWindowDelegate { 12 // A mojom::NewWindowClient which doesn't try to access a remote mojo component
13 // for testing purpose.
14 class TestNewWindowClient : public mojom::NewWindowClient {
15 public: 15 public:
16 NewWindowDelegateMus(); 16 TestNewWindowClient();
17 ~NewWindowDelegateMus() override; 17 ~TestNewWindowClient() override;
18 18
19 // NewWindowDelegate: 19 // NewWindowClient:
20 void NewTab() override; 20 void NewTab() override;
21 void NewWindow(bool incognito) override; 21 void NewWindow(bool incognito) override;
22 void OpenFileManager() override; 22 void OpenFileManager() override;
23 void OpenCrosh() override; 23 void OpenCrosh() override;
24 void OpenGetHelp() override; 24 void OpenGetHelp() override;
25 void RestoreTab() override; 25 void RestoreTab() override;
26 void ShowKeyboardOverlay() override; 26 void ShowKeyboardOverlay() override;
27 void ShowTaskManager() override; 27 void ShowTaskManager() override;
28 void OpenFeedbackPage() override; 28 void OpenFeedbackPage() override;
29 29
30 private: 30 private:
31 DISALLOW_COPY_AND_ASSIGN(NewWindowDelegateMus); 31 DISALLOW_COPY_AND_ASSIGN(TestNewWindowClient);
32 }; 32 };
33 33
34 } // namespace mus
35 } // namespace ash 34 } // namespace ash
36 35
37 #endif // ASH_MUS_NEW_WINDOW_DELEGATE_MUS_H_ 36 #endif // ASH_COMMON_TEST_TEST_NEW_WINDOW_CLIENT_H_
OLDNEW
« no previous file with comments | « ash/common/test/BUILD.gn ('k') | ash/common/test/test_new_window_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698