12345678910111213141516171819202122232425262728293031323334353637 |
- From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
- From: deepak1556 <[email protected]>
- Date: Fri, 3 Sep 2021 18:28:51 -0700
- Subject: fix: expose DecrementCapturerCount in web_contents_impl
- This was made private in https://chromium-review.googlesource.com/c/chromium/src/+/2807829 but
- we invoke it in order to expose contents.decrementCapturerCount([stayHidden, stayAwake])
- to users. We should try to upstream this.
- diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
- index 1b10f7f79cf784409fd63ffefa191e0eaf5c34c8..919027b9233ef1f568263a3d61ed1479b72aea2c 100644
- --- a/content/browser/web_contents/web_contents_impl.h
- +++ b/content/browser/web_contents/web_contents_impl.h
- @@ -1866,7 +1866,7 @@ class CONTENT_EXPORT WebContentsImpl : public WebContents,
- // IncrementCapturerCount() is destructed.
- void DecrementCapturerCount(bool stay_hidden,
- bool stay_awake,
- - bool is_activity = true);
- + bool is_activity = true) override;
-
- // Calculates the PageVisibilityState for |visibility|, taking the capturing
- // state into account.
- diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
- index 2bbdc0e5e943510bfdbd2f3cc31584dadb331472..5ea28b60f9c0f1ca5d060a44fed61952bf46d684 100644
- --- a/content/public/browser/web_contents.h
- +++ b/content/public/browser/web_contents.h
- @@ -672,6 +672,10 @@ class WebContents : public PageNavigator,
- bool stay_awake,
- bool is_activity = true) = 0;
-
- + virtual void DecrementCapturerCount(bool stay_hidden,
- + bool stay_awake,
- + bool is_activity = true) = 0;
- +
- // Getter for the capture handle, which allows a captured application to
- // opt-in to exposing information to its capturer(s).
- virtual const blink::mojom::CaptureHandleConfig& GetCaptureHandleConfig() = 0;
|