From 4f6916fa1138b8ce83cd0cfc7f8040158f17835d Mon Sep 17 00:00:00 2001 From: "mihaip@chromium.org" Date: Sat, 7 Jan 2012 22:52:55 +0000 Subject: 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 --- chrome/browser/extensions/extension_process_manager.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chrome/browser/extensions/extension_process_manager.h') 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); -- cgit v1.1