summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_host.h
diff options
context:
space:
mode:
authormihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-09 05:48:31 +0000
committermihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-09 05:48:31 +0000
commita4465720c0d4ceb633c08abbb5c3033eb203c5e4 (patch)
treed86d0a22bcc2aa279f661f48fda051f6be857c23 /chrome/browser/extensions/extension_host.h
parent4169f306f3cef291616fbcf3d7950056ce504cb5 (diff)
downloadchromium_src-a4465720c0d4ceb633c08abbb5c3033eb203c5e4.zip
chromium_src-a4465720c0d4ceb633c08abbb5c3033eb203c5e4.tar.gz
chromium_src-a4465720c0d4ceb633c08abbb5c3033eb203c5e4.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) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116834 Review URL: http://codereview.chromium.org/8985008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116855 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_host.h')
-rw-r--r--chrome/browser/extensions/extension_host.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_host.h b/chrome/browser/extensions/extension_host.h
index 6c73751..78945dc 100644
--- a/chrome/browser/extensions/extension_host.h
+++ b/chrome/browser/extensions/extension_host.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.
@@ -71,6 +71,9 @@ class ExtensionHost : public content::WebContentsDelegate,
// instantiate Browser objects.
void CreateView(Browser* browser);
+ // Helper variant of the above for cases where no Browser is present.
+ void CreateViewWithoutBrowser();
+
const Extension* extension() const { return extension_; }
const std::string& extension_id() const { return extension_id_; }
content::WebContents* host_contents() const { return host_contents_.get(); }