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

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

Issue 1585011: Add menu and menu item events to the accessibility extension api, and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 "nodoc": true, 236 "nodoc": true,
237 "types": [ 237 "types": [
238 { 238 {
239 "id": "AccessibilityObject", 239 "id": "AccessibilityObject",
240 "type": "object", 240 "type": "object",
241 "description": "Parent class for accessibility information about an obje ct.", 241 "description": "Parent class for accessibility information about an obje ct.",
242 "properties": { 242 "properties": {
243 "type": { 243 "type": {
244 "type": "string", 244 "type": "string",
245 "description": "The type of this object, which determines the conten ts of 'details'.", 245 "description": "The type of this object, which determines the conten ts of 'details'.",
246 "enum": ["button", "checkbox", "combobox", "link", "radiobutton", "t ab", "textbox", "window"] 246 "enum": ["button", "checkbox", "combobox", "link", "menu", "menuitem ", "radiobutton", "tab", "textbox", "window"]
247 }, 247 },
248 "name": { 248 "name": {
249 "type": "string", 249 "type": "string",
250 "description": "The localized name of the object, like OK or Passwor d. Do not rely on an exact string match because the text will be in the user's l anguage and may change in the future." 250 "description": "The localized name of the object, like OK or Passwor d. Do not rely on an exact string match because the text will be in the user's l anguage and may change in the future."
251 }, 251 },
252 "details": { 252 "details": {
253 "description": "Other details like the state, depending on the type of object.", 253 "description": "Other details like the state, depending on the type of object.",
254 "optional": true, 254 "optional": true,
255 "choices": [ 255 "choices": [
256 { "$ref": "CheckboxDetails" }, 256 { "$ref": "CheckboxDetails" },
257 { "$ref": "ComboBoxDetails" }, 257 { "$ref": "ComboBoxDetails" },
258 { "$ref": "MenuDetails" },
259 { "$ref": "MenuItemDetails" },
258 { "$ref": "RadioButtonDetails" }, 260 { "$ref": "RadioButtonDetails" },
259 { "$ref": "TabDetails" }, 261 { "$ref": "TabDetails" },
260 { "$ref": "TextBoxDetails" } 262 { "$ref": "TextBoxDetails" }
261 ] 263 ]
262 } 264 }
263 } 265 }
264 }, 266 },
265 { 267 {
266 "id": "CheckboxDetails", 268 "id": "CheckboxDetails",
267 "type": "object", 269 "type": "object",
(...skipping 16 matching lines...) Expand all
284 "id": "ListBoxDetails", 286 "id": "ListBoxDetails",
285 "type": "object", 287 "type": "object",
286 "description": "Information about the state of a list box.", 288 "description": "Information about the state of a list box.",
287 "properties": { 289 "properties": {
288 "value": {"type": "string", "description": "The value of the list box. "}, 290 "value": {"type": "string", "description": "The value of the list box. "},
289 "itemCount": {"type": "integer", "description": "The number of items i n the list."}, 291 "itemCount": {"type": "integer", "description": "The number of items i n the list."},
290 "itemIndex": {"type": "integer", "description": "The 0-based index of the selected value, or -1 if no items are selected."} 292 "itemIndex": {"type": "integer", "description": "The 0-based index of the selected value, or -1 if no items are selected."}
291 } 293 }
292 }, 294 },
293 { 295 {
296 "id": "MenuDetails",
297 "type": "object",
298 "description": "Information about the state of a drop-down menu.",
299 "properties": {
300 }
301 },
302 {
303 "id": "MenuItemDetails",
304 "type": "object",
305 "description": "Information about a menu item.",
306 "properties": {
307 "hasSubmenu": {"type": "boolean", "description": "True if this item op ens a submenu."},
308 "itemCount": {"type": "integer", "description": "The number of items i n the menu."},
309 "itemIndex": {"type": "integer", "description": "The 0-based index of this menu item."}
310 }
311 },
312 {
294 "id": "RadioButtonDetails", 313 "id": "RadioButtonDetails",
295 "type": "object", 314 "type": "object",
296 "description": "Information about the state of a radio button.", 315 "description": "Information about the state of a radio button.",
297 "properties": { 316 "properties": {
298 "isChecked": {"type": "boolean", "description": "True if this radio bu tton is checked."}, 317 "isChecked": {"type": "boolean", "description": "True if this radio bu tton is checked."},
299 "itemCount": {"type": "integer", "description": "The number of radio b uttons in this group."}, 318 "itemCount": {"type": "integer", "description": "The number of radio b uttons in this group."},
300 "itemIndex": {"type": "integer", "description": "The 0-based index of this radio button in this group."} 319 "itemIndex": {"type": "integer", "description": "The 0-based index of this radio button in this group."}
301 } 320 }
302 }, 321 },
303 { 322 {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 "name": "onTextChanged", 428 "name": "onTextChanged",
410 "type": "function", 429 "type": "function",
411 "description": "Fired when text changes in an editable text control.", 430 "description": "Fired when text changes in an editable text control.",
412 "parameters": [ 431 "parameters": [
413 { 432 {
414 "$ref": "AccessibilityObject", 433 "$ref": "AccessibilityObject",
415 "name": "control", 434 "name": "control",
416 "description": "Details of the control where the text changed." 435 "description": "Details of the control where the text changed."
417 } 436 }
418 ] 437 ]
438 },
439 {
440 "name": "onMenuOpened",
441 "type": "function",
442 "description": "Fired when a menu is opened.",
443 "parameters": [
444 {
445 "$ref": "AccessibilityObject",
446 "name": "menu",
447 "description": "Information about the menu that was opened."
448 }
449 ]
450 },
451 {
452 "name": "onMenuClosed",
453 "type": "function",
454 "description": "Fired when a menu is closed.",
455 "parameters": [
456 {
457 "$ref": "AccessibilityObject",
458 "name": "menu",
459 "description": "Information about the menu that was closed."
460 }
461 ]
419 } 462 }
420 ] 463 ]
421 }, 464 },
422 { 465 {
423 "namespace": "experimental.extension", 466 "namespace": "experimental.extension",
424 "nodoc": true, 467 "nodoc": true,
425 "types": [], 468 "types": [],
426 "functions": [ 469 "functions": [
427 { 470 {
428 "name": "getPopupView", 471 "name": "getPopupView",
(...skipping 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after
2675 "description": "Triggers a paste operation in the specified tab.", 2718 "description": "Triggers a paste operation in the specified tab.",
2676 "parameters": [ 2719 "parameters": [
2677 {"type": "integer", "name": "tabId", "minimum": 0}, 2720 {"type": "integer", "name": "tabId", "minimum": 0},
2678 {"type": "function", "name": "callback", "optional": true, "parameters ": []} 2721 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
2679 ] 2722 ]
2680 } 2723 }
2681 ], 2724 ],
2682 "events": [] 2725 "events": []
2683 } 2726 }
2684 ] 2727 ]
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698