summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/tab_contents_delegate.h
diff options
context:
space:
mode:
authorapavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-25 11:22:46 +0000
committerapavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-25 11:22:46 +0000
commit8e48e9848e1a6626c36e3efbe1750bbb3c8b3e4e (patch)
tree344faabdd8f1fe715c6d919de4a1d53bde344dbb /chrome/browser/tab_contents/tab_contents_delegate.h
parent09c0077246c9be4122ca1fcbf892865a61ec12a8 (diff)
downloadchromium_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/tab_contents/tab_contents_delegate.h')
-rw-r--r--chrome/browser/tab_contents/tab_contents_delegate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_delegate.h b/chrome/browser/tab_contents/tab_contents_delegate.h
index f67d8bb..817bd25 100644
--- a/chrome/browser/tab_contents/tab_contents_delegate.h
+++ b/chrome/browser/tab_contents/tab_contents_delegate.h
@@ -123,6 +123,10 @@ class TabContentsDelegate {
// call. ConstrainedWindows shouldn't be able to be blurred.
virtual bool CanBlur() const { return true; }
+ // Whether the specified tab can be reloaded.
+ // Reloading can be disabled e. g. for the DevTools window.
+ virtual bool CanReloadContents(TabContents* source) const { return true; }
+
// Return the rect where to display the resize corner, if any, otherwise
// an empty rect.
virtual gfx::Rect GetRootWindowResizerRect() const { return gfx::Rect(); }