diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 03:09:12 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 03:09:12 +0000 |
commit | 3e108342206210d64d81368044d9503445a1a1f3 (patch) | |
tree | 9cf19a4e5016d9dc8c29d76026be2f03b60ea9ba /chrome/browser/tab_contents | |
parent | e218cb64a14c3df9194c9b04094f1aa5d9e6ff91 (diff) | |
download | chromium_src-3e108342206210d64d81368044d9503445a1a1f3.zip chromium_src-3e108342206210d64d81368044d9503445a1a1f3.tar.gz chromium_src-3e108342206210d64d81368044d9503445a1a1f3.tar.bz2 |
Revert 52600 - renderer_host: Remove CanBlur method.
This method was not implemented and always returns true.
(Note: this was a TODO for brettw).
BUG=None
TEST=trybots
Signed-off-by: Thiago Farina <tfarina@chromium.org>
Review URL: http://codereview.chromium.org/2870050
TBR=tfarina@chromium.org
Review URL: http://codereview.chromium.org/3033004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52601 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 4 | ||||
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.h | 1 | ||||
-rw-r--r-- | chrome/browser/tab_contents/tab_contents_delegate.h | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index 92aecf8..66306ae 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -2755,6 +2755,10 @@ void TabContents::OnCrossSiteResponse(int new_render_process_host_id, new_request_id); } +bool TabContents::CanBlur() const { + return delegate() ? delegate()->CanBlur() : true; +} + gfx::Rect TabContents::GetRootWindowResizerRect() const { if (delegate()) return delegate()->GetRootWindowResizerRect(); diff --git a/chrome/browser/tab_contents/tab_contents.h b/chrome/browser/tab_contents/tab_contents.h index c1c408c..e01772f 100644 --- a/chrome/browser/tab_contents/tab_contents.h +++ b/chrome/browser/tab_contents/tab_contents.h @@ -956,6 +956,7 @@ class TabContents : public PageNavigator, virtual void OnJSOutOfMemory(); virtual void OnCrossSiteResponse(int new_render_process_host_id, int new_request_id); + virtual bool CanBlur() const; virtual gfx::Rect GetRootWindowResizerRect() const; virtual void RendererUnresponsive(RenderViewHost* render_view_host, bool is_during_unload); diff --git a/chrome/browser/tab_contents/tab_contents_delegate.h b/chrome/browser/tab_contents/tab_contents_delegate.h index 0adfd09..f7eb5e7 100644 --- a/chrome/browser/tab_contents/tab_contents_delegate.h +++ b/chrome/browser/tab_contents/tab_contents_delegate.h @@ -125,6 +125,10 @@ class TabContentsDelegate : public AutomationResourceRoutingDelegate { // a TabContents with a valid WebApp set. virtual void ConvertContentsToApplication(TabContents* source); + // Whether this tab can be blurred through a javascript obj.blur() + // call. ConstrainedWindows shouldn't be able to be blurred. + virtual bool CanBlur() const; + // Whether the specified tab can be reloaded. // Reloading can be disabled e. g. for the DevTools window. virtual bool CanReloadContents(TabContents* source) const; |