Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module blink.mojom; | 5 module blink.mojom.copyless; |
|
dcheng
2017/04/06 21:42:12
Nit: document_metadata seems like a more appropria
dproctor
2017/04/06 22:06:02
I agree.
wychen
2017/04/06 22:58:56
In the hindsight, it's quite obvious. Why didn't I
| |
| 6 | 6 |
| 7 import "url/mojo/url.mojom"; | 7 import "url/mojo/url.mojom"; |
| 8 | 8 |
| 9 // Due to the restriction of AppIndexing, all elements should be of the | 9 // Due to the restriction of AppIndexing, all elements should be of the |
| 10 // same type. Non-array values are converted to arrays of one element. | 10 // same type. Non-array values are converted to arrays of one element. |
| 11 union Values { | 11 union Values { |
| 12 array<bool> bool_values; | 12 array<bool> bool_values; |
| 13 array<int64> long_values; | 13 array<int64> long_values; |
| 14 array<string> string_values; | 14 array<string> string_values; |
| 15 array<Entity> entity_values; | 15 array<Entity> entity_values; |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 27 struct Entity { | 27 struct Entity { |
| 28 string type; // Correspond to the "@type" key, defined in JSON-LD. | 28 string type; // Correspond to the "@type" key, defined in JSON-LD. |
| 29 array<Property> properties; | 29 array<Property> properties; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 struct WebPage { | 32 struct WebPage { |
| 33 url.mojom.Url url; | 33 url.mojom.Url url; |
| 34 string title; | 34 string title; |
| 35 array<Entity> entities; | 35 array<Entity> entities; |
| 36 }; | 36 }; |
| OLD | NEW |