diff options
author | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-07 22:52:55 +0000 |
---|---|---|
committer | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-07 22:52:55 +0000 |
commit | 4f6916fa1138b8ce83cd0cfc7f8040158f17835d (patch) | |
tree | 1d672e32eb84c8c0541ed9365418d48115b6d0cc /chrome/browser/extensions/extension_process_manager.h | |
parent | 8f0f5e6835c77f53fc3a61c1a9c38d0d4cea0a70 (diff) | |
download | chromium_src-4f6916fa1138b8ce83cd0cfc7f8040158f17835d.zip chromium_src-4f6916fa1138b8ce83cd0cfc7f8040158f17835d.tar.gz chromium_src-4f6916fa1138b8ce83cd0cfc7f8040158f17835d.tar.bz2 |
Don't use browser windows for platform app shell windows.
This frees platform apps from having to disable browser behaviors they don't
want (e.g. keyboard shortcuts).
Reverts part of r112378, which add a "shell" browser window type, and redoes
part of r114162 to not depend on browser windows when checking if the context
menu is being displayed for a platform app.
(reland of r116803, which got reverted with r116810 -- now builds on Chrome OS)
Review URL: http://codereview.chromium.org/8985008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116834 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_process_manager.h')
-rw-r--r-- | chrome/browser/extensions/extension_process_manager.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_process_manager.h b/chrome/browser/extensions/extension_process_manager.h index 6553858..3f1f566 100644 --- a/chrome/browser/extensions/extension_process_manager.h +++ b/chrome/browser/extensions/extension_process_manager.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -33,6 +33,8 @@ class ExtensionProcessManager : public content::NotificationObserver { static ExtensionProcessManager* Create(Profile* profile); virtual ~ExtensionProcessManager(); + ExtensionHost* CreateShellHost(const Extension* extension, const GURL& url); + // Creates a new ExtensionHost with its associated view, grouping it in the // appropriate SiteInstance (and therefore process) based on the URL and // profile. @@ -54,6 +56,8 @@ class ExtensionProcessManager : public content::NotificationObserver { ExtensionHost* CreateInfobarHost(const GURL& url, Browser* browser); + ExtensionHost* CreateShellHost(const GURL& url, Browser* browser); + // Open the extension's options page. void OpenOptionsPage(const Extension* extension, Browser* browser); |