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

Side by Side Diff: ash/new_window_controller.h

Issue 2734733002: Revert "chromeos: Move files in //ash/common to //ash, part 3" (Closed)
Patch Set: Created 3 years, 9 months 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/mus_property_mirror_ash_unittest.cc ('k') | ash/new_window_controller.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_NEW_WINDOW_CONTROLLER_H_
6 #define ASH_NEW_WINDOW_CONTROLLER_H_
7
8 #include "ash/public/interfaces/new_window.mojom.h"
9 #include "base/macros.h"
10 #include "mojo/public/cpp/bindings/associated_binding.h"
11 #include "mojo/public/cpp/bindings/binding_set.h"
12
13 namespace ash {
14
15 // Provides the NewWindowController interface to the outside world. This lets a
16 // consumer of ash provide a NewWindowClient, which we will dispatch to if one
17 // has been provided to us.
18 class NewWindowController : public mojom::NewWindowController,
19 public mojom::NewWindowClient {
20 public:
21 NewWindowController();
22 ~NewWindowController() override;
23
24 void BindRequest(mojom::NewWindowControllerRequest request);
25
26 // NewWindowClient:
27 void NewTab() override;
28 void NewWindow(bool incognito) override;
29 void OpenFileManager() override;
30 void OpenCrosh() override;
31 void OpenGetHelp() override;
32 void RestoreTab() override;
33 void ShowKeyboardOverlay() override;
34 void ShowTaskManager() override;
35 void OpenFeedbackPage() override;
36
37 private:
38 // NewWindowController:
39 void SetClient(mojom::NewWindowClientAssociatedPtrInfo client) override;
40
41 mojo::BindingSet<mojom::NewWindowController> bindings_;
42
43 mojom::NewWindowClientAssociatedPtr client_;
44
45 DISALLOW_COPY_AND_ASSIGN(NewWindowController);
46 };
47
48 } // namespace ash
49
50 #endif // ASH_NEW_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/mus_property_mirror_ash_unittest.cc ('k') | ash/new_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698