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

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

Issue 9309044: Supporting more APIs with json_schema_compiler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rework, updated base 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": "windows", 3 "namespace": "windows",
4 "compile": true,
5 "types": [ 4 "types": [
6 { 5 {
7 "id": "Window", 6 "id": "Window",
8 "type": "object", 7 "type": "object",
9 "properties": { 8 "properties": {
10 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."}, 9 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."},
11 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."}, 10 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."},
12 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."}, 11 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."},
13 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."}, 12 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."},
14 "width": {"type": "integer", "description": "The width of the window i n pixels."}, 13 "width": {"type": "integer", "description": "The width of the window i n pixels."},
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 "parameters": [ 131 "parameters": [
133 { 132 {
134 "name": "windows", "type": "array", "items": { "$ref": "Window" } 133 "name": "windows", "type": "array", "items": { "$ref": "Window" }
135 } 134 }
136 ] 135 ]
137 } 136 }
138 ] 137 ]
139 }, 138 },
140 { 139 {
141 "name": "create", 140 "name": "create",
141 "nocompile": true,
142 "type": "function", 142 "type": "function",
143 "description": "Creates (opens) a new browser with any optional sizing, position or default URL provided.", 143 "description": "Creates (opens) a new browser with any optional sizing, position or default URL provided.",
144 "parameters": [ 144 "parameters": [
145 { 145 {
146 "type": "object", 146 "type": "object",
147 "name": "createData", 147 "name": "createData",
148 "properties": { 148 "properties": {
149 "url": { 149 "url": {
150 "type": "string", 150 "type": "string",
151 "description": "A URL or list of URLs to open as tabs in the win dow. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', n ot 'www.google.com'). Relative URLs will be relative to the current page within the extension. Defaults to the New Tab Page.", 151 "description": "A URL or list of URLs to open as tabs in the win dow. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', n ot 'www.google.com'). Relative URLs will be relative to the current page within the extension. Defaults to the New Tab Page.",
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 "name": "onFocusChanged", 255 "name": "onFocusChanged",
256 "type": "function", 256 "type": "function",
257 "description": "Fired when the currently focused window changes. Will be chrome.windows.WINDOW_ID_NONE if all chrome windows have lost focus. Note: On s ome Linux window managers, WINDOW_ID_NONE will always be sent immediately preced ing a switch from one chrome window to another.", 257 "description": "Fired when the currently focused window changes. Will be chrome.windows.WINDOW_ID_NONE if all chrome windows have lost focus. Note: On s ome Linux window managers, WINDOW_ID_NONE will always be sent immediately preced ing a switch from one chrome window to another.",
258 "parameters": [ 258 "parameters": [
259 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."} 259 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."}
260 ] 260 ]
261 } 261 }
262 ] 262 ]
263 } 263 }
264 ] 264 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698