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

Side by Side Diff: tools/json_schema_compiler/test/tabs.json

Issue 9309044: Supporting more APIs with json_schema_compiler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed optional properties Created 8 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 unified diff | Download patch
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "tabs", 3 "namespace": "tabs",
4 "compile": true, 4 "compile": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "Tab", 7 "id": "Tab",
8 "type": "object", 8 "type": "object",
9 "properties": { 9 "properties": {
10 "id": {"type": "integer", "minimum": 0, "description": "The ID of the tab. Tab IDs are unique within a browser session."}, 10 "id": {"type": "integer", "minimum": 0, "description": "The ID of the tab. Tab IDs are unique within a browser session."},
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 "minimum": 0, 331 "minimum": 0,
332 "optional": true, 332 "optional": true,
333 "description": "Defaults to the selected tab of the <a href='windows .html#current-window'>current window</a>." 333 "description": "Defaults to the selected tab of the <a href='windows .html#current-window'>current window</a>."
334 }, 334 },
335 { 335 {
336 "type": "object", 336 "type": "object",
337 "name": "updateProperties", 337 "name": "updateProperties",
338 "properties": { 338 "properties": {
339 "url": { 339 "url": {
340 "optional": true, 340 "optional": true,
341 "type": "string",
341 "description": "A URL to navigate the tab to." 342 "description": "A URL to navigate the tab to."
342 }, 343 },
343 "active": { 344 "active": {
344 "type": "boolean", 345 "type": "boolean",
345 "optional": true, 346 "optional": true,
346 "description": "Whether the tab should be active." 347 "description": "Whether the tab should be active."
347 }, 348 },
348 "highlighted": { 349 "highlighted": {
349 "type": "boolean", 350 "type": "boolean",
350 "optional": true, 351 "optional": true,
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 "name": "removeInfo", 761 "name": "removeInfo",
761 "properties": { 762 "properties": {
762 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } 763 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." }
763 } 764 }
764 } 765 }
765 ] 766 ]
766 } 767 }
767 ] 768 ]
768 } 769 }
769 ] 770 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698