diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 23:02:42 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 23:02:42 +0000 |
commit | cec8588640e68e9fddf73b6f68cedfbaa97080a6 (patch) | |
tree | 99d2e6a04497d7f5103f8effd8bca793d1b12e05 /chrome/renderer/render_widget.h | |
parent | 090ac3fac1a1d4d49cec412321653c089838f965 (diff) | |
download | chromium_src-cec8588640e68e9fddf73b6f68cedfbaa97080a6.zip chromium_src-cec8588640e68e9fddf73b6f68cedfbaa97080a6.tar.gz chromium_src-cec8588640e68e9fddf73b6f68cedfbaa97080a6.tar.bz2 |
Implement ScrollView::inWindow by plumbing through RenderWidget::is_hidden to improve performance when a tab is in the background.
BUG=2525
Review URL: http://codereview.chromium.org/6503
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3147 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_widget.h')
-rw-r--r-- | chrome/renderer/render_widget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/renderer/render_widget.h b/chrome/renderer/render_widget.h index c9bdc39..98d0377 100644 --- a/chrome/renderer/render_widget.h +++ b/chrome/renderer/render_widget.h @@ -76,6 +76,7 @@ class RenderWidget : public IPC::Channel::Listener, virtual void GetRootWindowRect(WebWidget* webwidget, gfx::Rect* rect); virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move); virtual void RunModal(WebWidget* webwidget) {} + virtual bool IsHidden() { return is_hidden_; } // Close the underlying WebWidget. void Close(); |