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; |
+}; |