Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1854)

Unified Diff: content/public/browser/web_contents.h

Issue 12179007: While screencasting a tab, do not disable rendering updates while hidden. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment for WebContents::SetCapturingContents() mentions counting. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 6814e175ec4e8f25287b17c7513fa62d7bbd8715..f4a98e5bdbc7fc7fbeb19dc82431a8ece00edc15 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -220,8 +220,10 @@ class WebContents : public PageNavigator,
// Internal state ------------------------------------------------------------
- // This flag indicates whether the WebContents is currently being
- // screenshotted.
+ // Indicates whether the WebContents is being captured (e.g., for screenshots
+ // or mirroring). Calls with |cap| set to true must be balanced with an
+ // equivalent number of calls with |cap| set to false, since a count is
+ // internally maintained.
virtual void SetCapturingContents(bool cap) = 0;
// Indicates whether this tab should be considered crashed. The setter will

Powered by Google App Engine
This is Rietveld 408576698