Chromium Code Reviews| 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..c9a6fd8f264f00a9b0d2e93b8102af19fd73b8d5 |
| --- /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. |
|
dcheng
2017/04/05 02:39:35
Nit: two spaces between code and comments
wychen
2017/04/05 06:06:06
Done.
|
| + array<Property> properties; |
| +}; |
| + |
| +struct WebPage { |
| + url.mojom.Url url; |
| + string title; |
| + array<Entity> entities; |
| +}; |