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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2535483002: Plumb site engagement to the renderer process. (Closed)
Patch Set: Address comments Created 4 years 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: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 9887dd87987013fc175e43088aac32a9681f2f31..2d6827d0632450c24374d220cc53ca9caa641015 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -2296,6 +2296,10 @@ void WebLocalFrameImpl::saveImageAt(const WebPoint& posInViewport) {
m_client->saveImageFromDataURL(url);
}
+void WebLocalFrameImpl::setEngagementLevel(mojom::EngagementLevel level) {
+ frame()->document()->setEngagementLevel(level);
+}
+
WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const {
if (!frame())
return WebSandboxFlags::None;

Powered by Google App Engine
This is Rietveld 408576698