Index: extensions/common/api/extension_types.json |
diff --git a/extensions/common/api/extension_types.json b/extensions/common/api/extension_types.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f3d8782c0ee9a937879b9435f87d0b22d570c42a |
--- /dev/null |
+++ b/extensions/common/api/extension_types.json |
@@ -0,0 +1,32 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+[ |
+ { |
+ "namespace": "extensionTypes", |
+ "description": "The <code>chrome.extension_types</code> API contains type declarations for Chrome extensions.", |
+ "types": [ |
+ { |
+ "id": "ImageDetails", |
+ "type": "object", |
+ "description": "Details about the format and quality of an image.", |
+ "properties": { |
+ "format": { |
+ "type": "string", |
+ "optional": true, |
+ "enum": ["jpeg", "png"], |
+ "description": "The format of the resulting image. Default is <code>\"jpeg\"</code>." |
+ }, |
+ "quality": { |
+ "type": "integer", |
+ "optional": true, |
+ "minimum": 0, |
+ "maximum": 100, |
+ "description": "When format is <code>\"jpeg\"</code>, controls the quality of the resulting image. This value is ignored for PNG images. As quality is decreased, the resulting image will have more visual artifacts, and the number of bytes needed to store it will decrease." |
+ } |
+ } |
+ } |
+ ] |
+ } |
+] |