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

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

Issue 2549903002: mash: Reverse the responsibilities of the NewWindowClient. (Closed)
Patch Set: jamescook comments Created 4 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_TEST_TEST_NEW_WINDOW_CLIENT_H_
6 #define ASH_COMMON_TEST_TEST_NEW_WINDOW_CLIENT_H_
7
8 #include "ash/public/interfaces/new_window.mojom.h"
9
10 namespace ash {
11
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:
16 TestNewWindowClient();
17 ~TestNewWindowClient() override;
18
19 // NewWindowClient:
20 void NewTab() override;
21 void NewWindow(bool incognito) override;
22 void OpenFileManager() override;
23 void OpenCrosh() override;
24 void OpenGetHelp() override;
25 void RestoreTab() override;
26 void ShowKeyboardOverlay() override;
27 void ShowTaskManager() override;
28 void OpenFeedbackPage() override;
29
30 private:
31 DISALLOW_COPY_AND_ASSIGN(TestNewWindowClient);
32 };
33
34 } // namespace ash
35
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