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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1686823003: Canvas capture from inactive tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index e02c77031447bd168bd78da1759ae6fdceb488a9..70a5a0ad15a0be00a363613519121f52b7e25fd2 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -667,6 +667,10 @@ bool WebContentsImpl::OnMessageReceived(RenderViewHost* render_view_host,
IPC_MESSAGE_HANDLER(ViewHostMsg_OpenDateTimeDialog,
OnOpenDateTimeDialog)
#endif
+ IPC_MESSAGE_HANDLER(FrameHostMsg_IncrementCapturerCount,
+ OnIncrementCapturerCount)
+ IPC_MESSAGE_HANDLER(FrameHostMsg_DecrementCapturerCount,
+ OnDecrementCapturerCount)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
render_view_message_source_ = NULL;
@@ -2212,6 +2216,16 @@ void WebContentsImpl::OnMoveValidationMessage(
delegate_->MoveValidationMessage(this, anchor_in_root_view);
}
+void WebContentsImpl::OnIncrementCapturerCount() {
+ DVLOG(3) << __FUNCTION__;
+ IncrementCapturerCount(gfx::Size());
+}
+
+void WebContentsImpl::OnDecrementCapturerCount() {
+ DVLOG(3) << __FUNCTION__;
+ DecrementCapturerCount();
+}
+
void WebContentsImpl::DidSendScreenRects(RenderWidgetHostImpl* rwh) {
if (browser_plugin_embedder_)
browser_plugin_embedder_->DidSendScreenRects();
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698