Chromium Code Reviews| 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 647 "description": "Captures the visible area of the currently active tab in the specified window. You must have <a href='declare_permissions'><all_urls& gt;</a> permission to use this method.", | 647 "description": "Captures the visible area of the currently active tab in the specified window. You must have <a href='declare_permissions'><all_urls& gt;</a> permission to use this method.", |
| 648 "parameters": [ | 648 "parameters": [ |
| 649 { | 649 { |
| 650 "type": "integer", | 650 "type": "integer", |
| 651 "name": "windowId", | 651 "name": "windowId", |
| 652 "minimum": -2, | 652 "minimum": -2, |
| 653 "optional": true, | 653 "optional": true, |
| 654 "description": "The target window. Defaults to the <a href='windows# current-window'>current window</a>." | 654 "description": "The target window. Defaults to the <a href='windows# current-window'>current window</a>." |
| 655 }, | 655 }, |
| 656 { | 656 { |
| 657 "$ref": "types.ImageDetails", | 657 "$ref": "extension_types.ImageDetails", |
|
not at google - send to devlin
2014/08/25 22:22:47
ideally this should be extesionTypes.ImageDetails.
lfg
2014/08/26 16:15:21
Done.
| |
| 658 "name": "options", | 658 "name": "options", |
| 659 "optional": true | 659 "optional": true |
| 660 }, | 660 }, |
| 661 { | 661 { |
| 662 "type": "function", "name": "callback", "parameters": [ | 662 "type": "function", "name": "callback", "parameters": [ |
| 663 {"type": "string", "name": "dataUrl", "description": "A data URL w hich encodes an image of the visible area of the captured tab. May be assigned t o the 'src' property of an HTML Image element for display."} | 663 {"type": "string", "name": "dataUrl", "description": "A data URL w hich encodes an image of the visible area of the captured tab. May be assigned t o the 'src' property of an HTML Image element for display."} |
| 664 ] | 664 ] |
| 665 } | 665 } |
| 666 ] | 666 ] |
| 667 }, | 667 }, |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1077 "tabId": {"type": "integer", "minimum": 0}, | 1077 "tabId": {"type": "integer", "minimum": 0}, |
| 1078 "oldZoomFactor": {"type": "number"}, | 1078 "oldZoomFactor": {"type": "number"}, |
| 1079 "newZoomFactor": {"type": "number"}, | 1079 "newZoomFactor": {"type": "number"}, |
| 1080 "zoomSettings": {"$ref": "ZoomSettings"} | 1080 "zoomSettings": {"$ref": "ZoomSettings"} |
| 1081 } | 1081 } |
| 1082 }] | 1082 }] |
| 1083 } | 1083 } |
| 1084 ] | 1084 ] |
| 1085 } | 1085 } |
| 1086 ] | 1086 ] |
| OLD | NEW |