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

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: Execute delayed WasHidden() when capturer_count_ goes to zero. 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0431c17831b5ffd6186bb6db48c4994cf1c37bd8 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -220,9 +220,11 @@ class WebContents : public PageNavigator,
// Internal state ------------------------------------------------------------
- // This flag indicates whether the WebContents is currently being
- // screenshotted.
- virtual void SetCapturingContents(bool cap) = 0;
+ // Indicates whether the WebContents is being captured (e.g., for screenshots
+ // or mirroring). Increment calls must be balanced with an equivalent number
+ // of decrement calls.
+ virtual void IncrementCapturerCount() = 0;
+ virtual void DecrementCapturerCount() = 0;
// Indicates whether this tab should be considered crashed. The setter will
// also notify the delegate when the flag is changed.
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698