Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 225009: Implementing chrome.i18n.getMessage call, that loads message from the extensi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "Port", 6 "id": "Port",
7 "type": "object", 7 "type": "object",
8 "description": "An object which allows two way communication with other pages.", 8 "description": "An object which allows two way communication with other pages.",
9 "properties": { 9 "properties": {
10 "name": {"type": "string"}, 10 "name": {"type": "string"},
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 "description": "Get accept languages of browser", 1107 "description": "Get accept languages of browser",
1108 "parameters": [ 1108 "parameters": [
1109 { 1109 {
1110 "type": "function", 1110 "type": "function",
1111 "name": "callback", 1111 "name": "callback",
1112 "parameters": [ 1112 "parameters": [
1113 {"name": "languages", "type": "array", "items": {"type": "string"} , "description": "Array of the accept languages of the browser, such as en-US,en ,zh-CN"} 1113 {"name": "languages", "type": "array", "items": {"type": "string"} , "description": "Array of the accept languages of the browser, such as en-US,en ,zh-CN"}
1114 ] 1114 ]
1115 } 1115 }
1116 ] 1116 ]
1117 },
1118 {
1119 "name": "getMessage",
1120 "type": "function",
1121 "description": "Get a message from the extension language catalog, for a current locale.",
1122 "parameters": [
1123 { "type": "string",
1124 "name": "message_name",
1125 "description": "Message name from the extension catalog."
1126 },
1127 {
1128 "choices": [
1129 { "type": "string" },
1130 {
1131 "type": "array",
1132 "items": { "type": "string" },
1133 "minItems": 1,
1134 "maxItems": 9
1135 }
1136 ],
1137 "optional": true,
1138 "description": "1 - 9 substitution parameters, if the message requir es any."
1139 }
1140 ],
1141 "returns": {
1142 "type": "string",
1143 "description": "Message localized for current locale."
1144 }
1117 } 1145 }
1118 ], 1146 ],
1119 "events": [ 1147 "events": []
1120 ]
1121 }, 1148 },
1122 { 1149 {
1123 "namespace": "devtools", 1150 "namespace": "devtools",
1124 "types": [ 1151 "types": [
1125 ], 1152 ],
1126 "functions": [ 1153 "functions": [
1127 { 1154 {
1128 "name": "getTabEvents", 1155 "name": "getTabEvents",
1129 "type": "function", 1156 "type": "function",
1130 "description": "EXPERIMENTAL support for timeline API", 1157 "description": "EXPERIMENTAL support for timeline API",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 "type": "function", 1194 "type": "function",
1168 "description": "Logs a message during internal unit testing.", 1195 "description": "Logs a message during internal unit testing.",
1169 "parameters": [ 1196 "parameters": [
1170 {"type": "string", "name": "message"} 1197 {"type": "string", "name": "message"}
1171 ] 1198 ]
1172 } 1199 }
1173 ], 1200 ],
1174 "events": [] 1201 "events": []
1175 } 1202 }
1176 ] 1203 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698