diff options
author | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-18 22:29:32 +0000 |
---|---|---|
committer | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-18 22:29:32 +0000 |
commit | 07442307cd72bbe129cb87887438e82f146c0773 (patch) | |
tree | 4a526daa929741242fe2a29af1d106cc8e4cc1e3 /chrome/browser/extensions/extension_host.h | |
parent | 032b2c892ef67add767aa56dcf4f05b06f1f3d15 (diff) | |
download | chromium_src-07442307cd72bbe129cb87887438e82f146c0773.zip chromium_src-07442307cd72bbe129cb87887438e82f146c0773.tar.gz chromium_src-07442307cd72bbe129cb87887438e82f146c0773.tar.bz2 |
Change the view mode when switching between moles and toolstrips, and
propogate this into the class of the document element so that it's
possible to use CSS rules to control the display of your toolstrip/mole.
BUG=21939,15494
TEST=run the Mappy extension and verify it can open and close
Review URL: http://codereview.chromium.org/208020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26635 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_host.h')
-rw-r--r-- | chrome/browser/extensions/extension_host.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_host.h b/chrome/browser/extensions/extension_host.h index 49a75f1..3b3d64e 100644 --- a/chrome/browser/extensions/extension_host.h +++ b/chrome/browser/extensions/extension_host.h @@ -69,6 +69,9 @@ class ExtensionHost : public RenderViewHostDelegate, return document_element_available_; } + // Sets the the ViewType of this host (e.g. mole, toolstrip). + void SetRenderViewType(ViewType::Type type); + // Returns true if the render view is initialized and didn't crash. bool IsRenderViewLive() const; @@ -80,8 +83,8 @@ class ExtensionHost : public RenderViewHostDelegate, // Sets |url_| and navigates |render_view_host_|. void NavigateToURL(const GURL& url); - // Insert the CSS for a toolstrip. - void InsertCssIfToolstrip(); + // Insert the theme CSS for a toolstrip/mole. + void InsertThemeCSS(); // RenderViewHostDelegate implementation. virtual RenderViewHostDelegate::View* GetViewDelegate(); @@ -106,7 +109,6 @@ class ExtensionHost : public RenderViewHostDelegate, const int flags, IPC::Message* reply_msg, bool* did_suppress_message); - virtual void DidInsertCSS(); // RenderViewHostDelegate::View virtual void CreateNewWindow(int route_id, |