| 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 "dependencies": [ "extension", "windows" ], | 8 "dependencies": [ "extension", "windows" ], |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 "description": "Set parameters of image capture, such as the format
of the resulting image.", | 541 "description": "Set parameters of image capture, such as the format
of the resulting image.", |
| 542 "properties": { | 542 "properties": { |
| 543 "format": { | 543 "format": { |
| 544 "type": "string", | 544 "type": "string", |
| 545 "optional": true, | 545 "optional": true, |
| 546 "enum": ["jpeg", "png"], | 546 "enum": ["jpeg", "png"], |
| 547 "description": "The format of the resulting image. Default is j
peg." | 547 "description": "The format of the resulting image. Default is j
peg." |
| 548 }, | 548 }, |
| 549 "quality": { | 549 "quality": { |
| 550 "type": "integer", | 550 "type": "integer", |
| 551 "name": "quality", | |
| 552 "optional": true, | 551 "optional": true, |
| 553 "minimum": 0, | 552 "minimum": 0, |
| 554 "maximum": 100, | 553 "maximum": 100, |
| 555 "description": "When format is 'jpeg', controls the quality of t
he resulting image. This value is ignored for PNG images. As quality is decrea
sed, the resulting image will have more visual artifacts, and the number of byte
s needed to store it will decrease." | 554 "description": "When format is 'jpeg', controls the quality of t
he resulting image. This value is ignored for PNG images. As quality is decrea
sed, the resulting image will have more visual artifacts, and the number of byte
s needed to store it will decrease." |
| 556 } | 555 } |
| 557 } | 556 } |
| 558 }, | 557 }, |
| 559 { | 558 { |
| 560 "type": "function", "name": "callback", "parameters": [ | 559 "type": "function", "name": "callback", "parameters": [ |
| 561 {"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."} | 560 {"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."} |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 "name": "removeInfo", | 843 "name": "removeInfo", |
| 845 "properties": { | 844 "properties": { |
| 846 "isWindowClosing": {"type": "boolean", "description": "True when t
he tab is being closed because its window is being closed." } | 845 "isWindowClosing": {"type": "boolean", "description": "True when t
he tab is being closed because its window is being closed." } |
| 847 } | 846 } |
| 848 } | 847 } |
| 849 ] | 848 ] |
| 850 } | 849 } |
| 851 ] | 850 ] |
| 852 } | 851 } |
| 853 ] | 852 ] |
| OLD | NEW |