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

Unified Diff: third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom

Issue 2789313002: Add mojo data types for CopylessPaste (Closed)
Patch Set: space Created 3 years, 8 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 | « third_party/WebKit/public/platform/modules/document_metadata/OWNERS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom
diff --git a/third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom b/third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..6d8f3b6173a7da7a4beb4cb6d3c037c19ec452d7
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/document_metadata/copyless_paste.mojom
@@ -0,0 +1,36 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module blink.mojom;
+
+import "url/mojo/url.mojom";
+
+// Due to the restriction of AppIndexing, all elements should be of the
+// same type. Non-array values are converted to arrays of one element.
+union Values {
+ array<bool> bool_values;
+ array<int64> long_values;
+ array<string> string_values;
+ array<Entity> entity_values;
+};
+
+// Key-value pair for the attributes of an |Entity|.
+struct Property {
+ string name;
+ Values values;
+};
+
+// Top-level metadata entry using schema.org vocabulary.
+// Tree structure of entities is possible.
+// Ref: https://developers.google.com/schemas/formats/json-ld
+struct Entity {
+ string type; // Correspond to the "@type" key, defined in JSON-LD.
+ array<Property> properties;
+};
+
+struct WebPage {
+ url.mojom.Url url;
+ string title;
+ array<Entity> entities;
+};
« no previous file with comments | « third_party/WebKit/public/platform/modules/document_metadata/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698