diff options
author | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-25 11:22:46 +0000 |
---|---|---|
committer | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-25 11:22:46 +0000 |
commit | 8e48e9848e1a6626c36e3efbe1750bbb3c8b3e4e (patch) | |
tree | 344faabdd8f1fe715c6d919de4a1d53bde344dbb /chrome/browser/browser.h | |
parent | 09c0077246c9be4122ca1fcbf892865a61ec12a8 (diff) | |
download | chromium_src-8e48e9848e1a6626c36e3efbe1750bbb3c8b3e4e.zip chromium_src-8e48e9848e1a6626c36e3efbe1750bbb3c8b3e4e.tar.gz chromium_src-8e48e9848e1a6626c36e3efbe1750bbb3c8b3e4e.tar.bz2 |
Forbid reloading the Inspector window.
This CL disables reloading from the system menu, tab popup menu, and page context menu.
BUG=27254,6902
TEST=none
Review URL: http://codereview.chromium.org/391036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35275 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r-- | chrome/browser/browser.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h index 7f5f85c..d60ae4e 100644 --- a/chrome/browser/browser.h +++ b/chrome/browser/browser.h @@ -56,7 +56,8 @@ class Browser : public TabStripModelDelegate, TYPE_POPUP = 2, TYPE_APP = 4, TYPE_APP_POPUP = TYPE_APP | TYPE_POPUP, - TYPE_ANY = TYPE_NORMAL | TYPE_POPUP | TYPE_APP + TYPE_DEVTOOLS = TYPE_APP | 8, + TYPE_ANY = TYPE_NORMAL | TYPE_POPUP | TYPE_APP | TYPE_DEVTOOLS }; // Possible elements of the Browser window. @@ -104,6 +105,10 @@ class Browser : public TabStripModelDelegate, static Browser* CreateForApp(const std::wstring& app_name, Profile* profile, bool is_popup); + // Like Create, but creates a tabstrip-less and toolbar-less + // DevTools "app" window. + static Browser* CreateForDevTools(Profile* profile); + // Set overrides for the initial window bounds and maximized state. void set_override_bounds(const gfx::Rect& bounds) { override_bounds_ = bounds; @@ -559,6 +564,7 @@ class Browser : public TabStripModelDelegate, virtual void MoveContents(TabContents* source, const gfx::Rect& pos); virtual void DetachContents(TabContents* source); virtual bool IsPopup(TabContents* source); + virtual bool CanReloadContents(TabContents* source) const; virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); virtual void URLStarredChanged(TabContents* source, bool starred); virtual void UpdateTargetURL(TabContents* source, const GURL& url); |