commit | 18800974e27e6699df719c7b0393289ebe677ab5 | [log] [tgz] |
---|---|---|
author | Francois Doray <[email protected]> | Fri Aug 25 22:38:58 2017 |
committer | Commit Bot <[email protected]> | Fri Aug 25 22:38:58 2017 |
tree | e56fd4b14d7efa6ca4a61d88c2ab9cadab7802f2 | |
parent | 7721535c93622943b37b24ee38c516811ecbdadd [diff] |
Add WebContents::Was(Un)Occluded. WebContentsImpl::Was(Un)Occluded already existed. These methods called RenderWidgetHostView::Was(Un)Occluded() on all RenderWidgetHostViews in the WebContentsImpl's frame tree. RenderWidgetHostView::WasOccluded() allows a view's renderer to be suspended. This CL exposes these methods in WebContents so that they can be called by resource_coordinator::TabManager when it detects that a WebContents' parent window is occluded. This CL also fixes WebContentsImpl::WasOccluded() so that if it's called when the capturer count is > 0, the views are notified when the capturer count becomes zero (instead of never). Bug: 738387 Change-Id: Ic5619071441cde09acb62185eecf749b2a5a0e74 Reviewed-on: https://chromium-review.googlesource.com/628976 Commit-Queue: Francois Doray <[email protected]> Reviewed-by: Chris Hamilton <[email protected]> Reviewed-by: Jochen Eisinger <[email protected]> Cr-Commit-Position: refs/heads/master@{#497570}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .