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

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 174116: chrome.i18n API (accept languages part 1) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/docs/i18n.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api.json
===================================================================
--- chrome/common/extensions/api/extension_api.json (revision 25782)
+++ chrome/common/extensions/api/extension_api.json (working copy)
@@ -1019,6 +1019,28 @@
"events": []
},
{
+ "namespace": "i18n",
+ "types": [],
+ "functions": [
+ {
+ "name": "getAcceptLanguages",
+ "type": "function",
+ "description": "Get accept languages of browser",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "parameters": [
+ {"name": "languages", "type": "array", "items": {"type": "string"}, "description": "Array of the accept languages of the browser, such as en-US,en,zh-CN"}
+ ]
+ }
+ ]
+ }
+ ],
+ "events": [
+ ]
+ },
+ {
"namespace": "devtools",
"types": [
],
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/docs/i18n.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698