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

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

Issue 8772031: Add a JS API for detecting WebGL availability. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
Index: chrome/common/extensions/api/extension_api.json
===================================================================
--- chrome/common/extensions/api/extension_api.json (revision 112998)
+++ chrome/common/extensions/api/extension_api.json (working copy)
@@ -8086,6 +8086,24 @@
]
}
]
+ },
+ {
+ "name": "getWebGLStatus",
+ "description": "Invokes a callback that returns whether WebGL is blacklisted or not.",
+ "parameters": [
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": "false",
+ "parameters": [
+ {
+ "name": "webgl_status",
+ "type": "string",
Mihai Parparita -not on Chrome 2011/12/06 02:58:11 The type of this should be "enum", with the possib
Zhenyao Mo 2011/12/06 20:00:15 Done.
+ "description": "Returns 'webgl_blocked' if WebGL is blacklisted; otherwise, returns 'webgl_allowed'."
+ }
+ ]
+ }
+ ]
}
]
},

Powered by Google App Engine
This is Rietveld 408576698