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

Unified Diff: ash/shell/shell_delegate_impl.cc

Issue 2434463004: mash: Move directly linked NewWindowDelegate to mojom::NewWindowClient. (Closed)
Patch Set: Rebase to ToT Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shell/shell_delegate_impl.h ('k') | ash/test/ash_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/shell_delegate_impl.cc
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc
index 2d69cc9e9265431342b0aa19caaa7a7e2d3fe96b..76e340fa4c5176516ff1e7a6f26b350e8ff5c5ff 100644
--- a/ash/shell/shell_delegate_impl.cc
+++ b/ash/shell/shell_delegate_impl.cc
@@ -9,7 +9,6 @@
#include "ash/common/default_accessibility_delegate.h"
#include "ash/common/gpu_support_stub.h"
#include "ash/common/media_delegate.h"
-#include "ash/common/new_window_delegate.h"
#include "ash/common/palette_delegate.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/system/tray/default_system_tray_delegate.h"
@@ -37,31 +36,6 @@ namespace ash {
namespace shell {
namespace {
-class NewWindowDelegateImpl : public NewWindowDelegate {
- public:
- NewWindowDelegateImpl() {}
- ~NewWindowDelegateImpl() override {}
-
- // NewWindowDelegate:
- void NewTab() override {}
- void NewWindow(bool incognito) override {
- ToplevelWindow::CreateParams create_params;
- create_params.can_resize = true;
- create_params.can_maximize = true;
- ToplevelWindow::CreateToplevelWindow(create_params);
- }
- void OpenFileManager() override {}
- void OpenCrosh() override {}
- void OpenGetHelp() override {}
- void RestoreTab() override {}
- void ShowKeyboardOverlay() override {}
- void ShowTaskManager() override {}
- void OpenFeedbackPage() override {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(NewWindowDelegateImpl);
-};
-
class MediaDelegateImpl : public MediaDelegate {
public:
MediaDelegateImpl() {}
@@ -265,10 +239,6 @@ AccessibilityDelegate* ShellDelegateImpl::CreateAccessibilityDelegate() {
return new DefaultAccessibilityDelegate;
}
-NewWindowDelegate* ShellDelegateImpl::CreateNewWindowDelegate() {
- return new NewWindowDelegateImpl;
-}
-
MediaDelegate* ShellDelegateImpl::CreateMediaDelegate() {
return new MediaDelegateImpl;
}
« no previous file with comments | « ash/shell/shell_delegate_impl.h ('k') | ash/test/ash_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698