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

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

Issue 2690903005: Metadata extraction for Copyless Paste (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/web/WebDocument.cpp
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp
index c233eef22f4bdc60a90f9d95e024e0377571c647..0bcb8a761fcc8f51234073e20948661d84121daa 100644
--- a/third_party/WebKit/Source/web/WebDocument.cpp
+++ b/third_party/WebKit/Source/web/WebDocument.cpp
@@ -30,6 +30,7 @@
#include "public/web/WebDocument.h"
+#include <v8.h>
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/ScriptValue.h"
@@ -55,6 +56,7 @@
#include "core/loader/DocumentLoader.h"
#include "modules/accessibility/AXObject.h"
#include "modules/accessibility/AXObjectCacheImpl.h"
+#include "modules/copyless_paste/CopylessPasteExtractor.h"
#include "platform/weborigin/SecurityOrigin.h"
#include "public/platform/WebDistillability.h"
#include "public/platform/WebURL.h"
@@ -65,7 +67,6 @@
#include "public/web/WebFormElement.h"
#include "web/WebLocalFrameImpl.h"
#include "wtf/PassRefPtr.h"
-#include <v8.h>
namespace blink {
@@ -289,6 +290,10 @@ WebDistillabilityFeatures WebDocument::distillabilityFeatures() {
return DocumentStatisticsCollector::collectStatistics(*unwrap<Document>());
}
+WebString WebDocument::copylessPasteMetadata() {
+ return CopylessPasteExtractor::extract(*unwrap<Document>());
+}
+
WebDocument::WebDocument(Document* elem) : WebNode(elem) {}
DEFINE_WEB_NODE_TYPE_CASTS(WebDocument, constUnwrap<Node>()->isDocumentNode());

Powered by Google App Engine
This is Rietveld 408576698