OLD | NEW |
| (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 #include "ash/common/new_window_controller.h" | |
6 | |
7 #include <utility> | |
8 | |
9 namespace ash { | |
10 | |
11 NewWindowController::NewWindowController() {} | |
12 | |
13 NewWindowController::~NewWindowController() {} | |
14 | |
15 void NewWindowController::BindRequest( | |
16 mojom::NewWindowControllerRequest request) { | |
17 bindings_.AddBinding(this, std::move(request)); | |
18 } | |
19 | |
20 void NewWindowController::NewTab() { | |
21 if (client_) | |
22 client_->NewTab(); | |
23 } | |
24 | |
25 void NewWindowController::NewWindow(bool incognito) { | |
26 if (client_) | |
27 client_->NewWindow(incognito); | |
28 } | |
29 | |
30 void NewWindowController::OpenFileManager() { | |
31 if (client_) | |
32 client_->OpenFileManager(); | |
33 } | |
34 | |
35 void NewWindowController::OpenCrosh() { | |
36 if (client_) | |
37 client_->OpenCrosh(); | |
38 } | |
39 | |
40 void NewWindowController::OpenGetHelp() { | |
41 if (client_) | |
42 client_->OpenGetHelp(); | |
43 } | |
44 | |
45 void NewWindowController::RestoreTab() { | |
46 if (client_) | |
47 client_->RestoreTab(); | |
48 } | |
49 | |
50 void NewWindowController::ShowKeyboardOverlay() { | |
51 if (client_) | |
52 client_->ShowKeyboardOverlay(); | |
53 } | |
54 | |
55 void NewWindowController::ShowTaskManager() { | |
56 if (client_) | |
57 client_->ShowTaskManager(); | |
58 } | |
59 | |
60 void NewWindowController::OpenFeedbackPage() { | |
61 if (client_) | |
62 client_->OpenFeedbackPage(); | |
63 } | |
64 | |
65 void NewWindowController::SetClient( | |
66 mojom::NewWindowClientAssociatedPtrInfo client) { | |
67 client_.Bind(std::move(client)); | |
68 } | |
69 | |
70 } // namespace ash | |
OLD | NEW |