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

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

Issue 12089062: Move API functions registrations out of ExtensionFunctionRegistry. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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
Index: chrome/common/extensions/api/experimental_accessibility.json
===================================================================
--- chrome/common/extensions/api/experimental_accessibility.json (revision 181773)
+++ chrome/common/extensions/api/experimental_accessibility.json (working copy)
@@ -5,44 +5,12 @@
[
{
"namespace": "experimental.accessibility",
+ "compiler_options": {
+ "implemented_in": "chrome/browser/accessibility/accessibility_extension_api.h"
+ },
"nodoc": true,
"types": [
{
- "id": "AccessibilityObject",
- "type": "object",
- "description": "Parent class for accessibility information about an object.",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of this object, which determines the contents of 'details'.",
- "enum": ["button", "checkbox", "combobox", "link", "menu", "menuitem", "radiobutton", "slider", "tab", "textbox", "window"]
- },
- "name": {
- "type": "string",
- "description": "The localized name of the object, like OK or Password. Do not rely on an exact string match because the text will be in the user's language and may change in the future."
- },
- "context": {
- "type": "string",
- "description": "The localized name of the context for the object, like the name of the surrounding toolbar or group of controls.",
- "optional": true
- },
- "details": {
- "description": "Other details like the state, depending on the type of object.",
- "optional": true,
- "choices": [
- { "$ref": "CheckboxDetails" },
- { "$ref": "ComboBoxDetails" },
- { "$ref": "MenuDetails" },
- { "$ref": "MenuItemDetails" },
- { "$ref": "RadioButtonDetails" },
- { "$ref": "SliderDetails" },
- { "$ref": "TabDetails" },
- { "$ref": "TextBoxDetails" }
- ]
- }
- }
- },
- {
"id": "CheckboxDetails",
"type": "object",
"description": "Information about the state of a checkbox.",
@@ -135,6 +103,41 @@
"description": "The message the alert is showing."
}
}
+ },
+ {
+ "id": "AccessibilityObject",
+ "type": "object",
+ "description": "Parent class for accessibility information about an object.",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The type of this object, which determines the contents of 'details'.",
+ "enum": ["button", "checkbox", "combobox", "link", "menu", "menuitem", "radiobutton", "slider", "tab", "textbox", "window"]
+ },
+ "name": {
+ "type": "string",
+ "description": "The localized name of the object, like OK or Password. Do not rely on an exact string match because the text will be in the user's language and may change in the future."
+ },
+ "context": {
+ "type": "string",
+ "description": "The localized name of the context for the object, like the name of the surrounding toolbar or group of controls.",
+ "optional": true
+ },
+ "details": {
+ "description": "Other details like the state, depending on the type of object.",
+ "optional": true,
+ "choices": [
+ { "$ref": "CheckboxDetails" },
+ { "$ref": "ComboBoxDetails" },
+ { "$ref": "MenuDetails" },
+ { "$ref": "MenuItemDetails" },
+ { "$ref": "RadioButtonDetails" },
+ { "$ref": "SliderDetails" },
+ { "$ref": "TabDetails" },
+ { "$ref": "TextBoxDetails" }
+ ]
+ }
+ }
}
],
"functions": [
« no previous file with comments | « chrome/common/extensions/api/echo_private.json ('k') | chrome/common/extensions/api/experimental_infobars.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698