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

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 597f1565f4c0c2a081312eb3e4a61ad2f8671538..c8b88259c1ce2781b2a96b8390d49c85e3287fd9 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -2291,6 +2291,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