Index: chrome/common/extensions/api/extension_api.json |
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json |
index 7bc852072bf171d64e9f3255265830a1451c650b..6be5b4bc95a5561b1671bfa9e397df79538bd5e6 100644 |
--- a/chrome/common/extensions/api/extension_api.json |
+++ b/chrome/common/extensions/api/extension_api.json |
@@ -3371,21 +3371,24 @@ |
}, |
"segments": { |
"description": "List of segments and their associated types.", |
- "type": "object", |
+ "type": "array", |
"optional": true, |
- "properties": { |
- "start": { |
- "description": "Index of the character to start this segment at", |
- "type": "integer" |
- }, |
- "end": { |
- "description": "Index of the character to end this segment after.", |
- "type": "integer" |
- }, |
- "style": { |
- "description": "How to render this segment", |
- "enum": ["underline", "doubleUnderline"], |
- "type": "string" |
+ "items": { |
+ "type": "object", |
+ "properties": { |
+ "start": { |
+ "description": "Index of the character to start this segment at", |
+ "type": "integer" |
+ }, |
+ "end": { |
+ "description": "Index of the character to end this segment after.", |
+ "type": "integer" |
+ }, |
+ "style": { |
+ "description": "How to render this segment", |
+ "enum": ["underline", "doubleUnderline"], |
+ "type": "string" |
+ } |
} |
} |
} |
@@ -3598,7 +3601,12 @@ |
"name": "callback", |
"optional": true, |
"description": "Called when the operation completes", |
- "parameters": [] |
+ "parameters": [ |
+ { |
+ "name": "success", |
+ "type": "boolean" |
+ } |
+ ] |
} |
] |
}, |