summaryrefslogtreecommitdiffstats
path: root/ash/shell
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-25 03:07:19 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-25 03:07:19 +0000
commitb77236f7d21a39047ddc5d95cc5c3d8b3c8a1169 (patch)
treea92056c609608dc71ab3364ebfad03e9fc7369c7 /ash/shell
parent09a58d4af367de78e7b581e741bff33d1052700b (diff)
downloadchromium_src-b77236f7d21a39047ddc5d95cc5c3d8b3c8a1169.zip
chromium_src-b77236f7d21a39047ddc5d95cc5c3d8b3c8a1169.tar.gz
chromium_src-b77236f7d21a39047ddc5d95cc5c3d8b3c8a1169.tar.bz2
Add support for Ctrl-N when no browsers are present.
BUG=119648 TEST=Manual + AcceleratorControllerTest.GlobalAccelerators Review URL: http://codereview.chromium.org/9835040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell')
-rw-r--r--ash/shell/shell_delegate_impl.cc8
-rw-r--r--ash/shell/shell_delegate_impl.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc
index 2fb2c27a..54380f4 100644
--- a/ash/shell/shell_delegate_impl.cc
+++ b/ash/shell/shell_delegate_impl.cc
@@ -6,6 +6,7 @@
#include "ash/shell/example_factory.h"
#include "ash/shell/launcher_delegate_impl.h"
+#include "ash/shell/toplevel_window.h"
#include "ash/shell_window_ids.h"
#include "ash/wm/partial_screenshot_view.h"
#include "base/message_loop.h"
@@ -54,6 +55,13 @@ void ShellDelegateImpl::Exit() {
MessageLoopForUI::current()->Quit();
}
+void ShellDelegateImpl::NewWindow(bool incognito) {
+ ash::shell::ToplevelWindow::CreateParams create_params;
+ create_params.can_resize = true;
+ create_params.can_maximize = true;
+ ash::shell::ToplevelWindow::CreateToplevelWindow(create_params);
+}
+
ash::AppListViewDelegate* ShellDelegateImpl::CreateAppListViewDelegate() {
return ash::shell::CreateAppListViewDelegate();
}
diff --git a/ash/shell/shell_delegate_impl.h b/ash/shell/shell_delegate_impl.h
index 797011b..e449141 100644
--- a/ash/shell/shell_delegate_impl.h
+++ b/ash/shell/shell_delegate_impl.h
@@ -28,6 +28,7 @@ class ShellDelegateImpl : public ash::ShellDelegate {
virtual void UnlockScreen() OVERRIDE;
virtual bool IsScreenLocked() const OVERRIDE;
virtual void Exit() OVERRIDE;
+ virtual void NewWindow(bool incognito) OVERRIDE;
virtual ash::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE;
virtual std::vector<aura::Window*> GetCycleWindowList(
CycleSource source) const OVERRIDE;