| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "tabs", | 7 "namespace": "tabs", |
| 8 "description": "Use the <code>chrome.tabs</code> API to interact with the br
owser's tab system. You can use this API to create, modify, and rearrange tabs i
n the browser.", | 8 "description": "Use the <code>chrome.tabs</code> API to interact with the br
owser's tab system. You can use this API to create, modify, and rearrange tabs i
n the browser.", |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 "mode": { | 72 "mode": { |
| 73 "$ref": "ZoomSettingsMode", | 73 "$ref": "ZoomSettingsMode", |
| 74 "description": "Defines how zoom changes are handled, i.e. which ent
ity is responsible for the actual scaling of the page; defaults to <code>automat
ic</code>.", | 74 "description": "Defines how zoom changes are handled, i.e. which ent
ity is responsible for the actual scaling of the page; defaults to <code>automat
ic</code>.", |
| 75 "optional": true | 75 "optional": true |
| 76 }, | 76 }, |
| 77 "scope": { | 77 "scope": { |
| 78 "$ref": "ZoomSettingsScope", | 78 "$ref": "ZoomSettingsScope", |
| 79 "description": "Defines whether zoom changes will persist for the pa
ge's origin, or only take effect in this tab; defaults to <code>per-origin</code
> when in <code>automatic</code> mode, and <code>per-tab</code> otherwise.", | 79 "description": "Defines whether zoom changes will persist for the pa
ge's origin, or only take effect in this tab; defaults to <code>per-origin</code
> when in <code>automatic</code> mode, and <code>per-tab</code> otherwise.", |
| 80 "optional": true | 80 "optional": true |
| 81 }, | 81 }, |
| 82 "default_zoom_factor": { | 82 "defaultZoomFactor": { |
| 83 "type": "number", | 83 "type": "number", |
| 84 "name": "defaultZoomFactor", | |
| 85 "optional": true, | 84 "optional": true, |
| 86 "description": "Used to return the default zoom level for the curren
t tab in calls to tabs.getZoomSettings." | 85 "description": "Used to return the default zoom level for the curren
t tab in calls to tabs.getZoomSettings." |
| 87 } | 86 } |
| 88 } | 87 } |
| 89 }, | 88 }, |
| 90 { | 89 { |
| 91 "id": "TabStatus", | 90 "id": "TabStatus", |
| 92 "type": "string", | 91 "type": "string", |
| 93 "enum": ["loading", "complete"], | 92 "enum": ["loading", "complete"], |
| 94 "description": "Whether the tabs have completed loading." | 93 "description": "Whether the tabs have completed loading." |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 "tabId": {"type": "integer", "minimum": 0}, | 1107 "tabId": {"type": "integer", "minimum": 0}, |
| 1109 "oldZoomFactor": {"type": "number"}, | 1108 "oldZoomFactor": {"type": "number"}, |
| 1110 "newZoomFactor": {"type": "number"}, | 1109 "newZoomFactor": {"type": "number"}, |
| 1111 "zoomSettings": {"$ref": "ZoomSettings"} | 1110 "zoomSettings": {"$ref": "ZoomSettings"} |
| 1112 } | 1111 } |
| 1113 }] | 1112 }] |
| 1114 } | 1113 } |
| 1115 ] | 1114 ] |
| 1116 } | 1115 } |
| 1117 ] | 1116 ] |
| OLD | NEW |