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