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

Side by Side Diff: third_party/closure_compiler/externs/accessibility_private.js

Issue 2834033003: Update externs for accessibilityPrivate (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file was generated by: 5 // This file was generated by:
6 // tools/json_schema_compiler/compiler.py. 6 // tools/json_schema_compiler/compiler.py.
7 // NOTE: The format of types has changed. 'FooType' is now 7 // NOTE: The format of types has changed. 'FooType' is now
8 // 'chrome.accessibilityPrivate.FooType'. 8 // 'chrome.accessibilityPrivate.FooType'.
9 // Please run the closure compiler before committing changes. 9 // Please run the closure compiler before committing changes.
10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 * @param {boolean} enabled True if native accessibility support should be 67 * @param {boolean} enabled True if native accessibility support should be
68 * enabled. 68 * enabled.
69 * @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setN ativeAccessibilityEnabled 69 * @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setN ativeAccessibilityEnabled
70 */ 70 */
71 chrome.accessibilityPrivate.setNativeAccessibilityEnabled = function(enabled) {} ; 71 chrome.accessibilityPrivate.setNativeAccessibilityEnabled = function(enabled) {} ;
72 72
73 /** 73 /**
74 * Set the bounds of the accessibility focus ring. 74 * Set the bounds of the accessibility focus ring.
75 * @param {!Array<!chrome.accessibilityPrivate.ScreenRect>} rects Array of 75 * @param {!Array<!chrome.accessibilityPrivate.ScreenRect>} rects Array of
76 * rectangles to draw the accessibility focus ring around. 76 * rectangles to draw the accessibility focus ring around.
77 * @param {string=} opt_color CSS-style hex color string beginning with "#" 77 * @param {string=} color CSS-style hex color string beginning with # like
78 * like "#FF9982" or "#EEE". 78 * #FF9982 or #EEE.
79 * @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setF ocusRing 79 * @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setF ocusRing
80 */ 80 */
81 chrome.accessibilityPrivate.setFocusRing = function(rects, opt_color) {}; 81 chrome.accessibilityPrivate.setFocusRing = function(rects, color) {};
82 82
83 /** 83 /**
84 * Sets the calling extension as a listener of all keyboard events optionally 84 * Sets the calling extension as a listener of all keyboard events optionally
85 * allowing the calling extension to capture/swallow the key event via DOM apis. 85 * allowing the calling extension to capture/swallow the key event via DOM apis.
86 * Returns false via callback when unable to set the listener. 86 * Returns false via callback when unable to set the listener.
87 * @param {boolean} enabled True if the caller wants to listen to key events; 87 * @param {boolean} enabled True if the caller wants to listen to key events;
88 * false to stop listening to events. Note that there is only ever one 88 * false to stop listening to events. Note that there is only ever one
89 * extension listening to key events. 89 * extension listening to key events.
90 * @param {boolean} capture True if key events should be swallowed natively and 90 * @param {boolean} capture True if key events should be swallowed natively and
91 * not propagated if preventDefault() gets called by the extension's 91 * not propagated if preventDefault() gets called by the extension's
(...skipping 16 matching lines...) Expand all
108 */ 108 */
109 chrome.accessibilityPrivate.onIntroduceChromeVox; 109 chrome.accessibilityPrivate.onIntroduceChromeVox;
110 110
111 /** 111 /**
112 * Fired when an accessibility gesture is detected by the touch exploration 112 * Fired when an accessibility gesture is detected by the touch exploration
113 * controller. 113 * controller.
114 * @type {!ChromeEvent} 114 * @type {!ChromeEvent}
115 * @see https://developer.chrome.com/extensions/accessibilityPrivate#event-onAcc essibilityGesture 115 * @see https://developer.chrome.com/extensions/accessibilityPrivate#event-onAcc essibilityGesture
116 */ 116 */
117 chrome.accessibilityPrivate.onAccessibilityGesture; 117 chrome.accessibilityPrivate.onAccessibilityGesture;
118
119 /**
120 * Fired when we first detect two fingers are held down, which can be used to
121 * toggle spoken feedback on some touch-only devices.
122 * @type {!ChromeEvent}
123 * @see https://developer.chrome.com/extensions/accessibilityPrivate#event-onTwo FingerTouchStart
124 */
125 chrome.accessibilityPrivate.onTwoFingerTouchStart;
126
127 /**
128 * Fired when the user is no longer holding down two fingers (including
129 * releasing one, holding down three, or moving them).
130 * @type {!ChromeEvent}
131 * @see https://developer.chrome.com/extensions/accessibilityPrivate#event-onTwo FingerTouchStop
132 */
133 chrome.accessibilityPrivate.onTwoFingerTouchStop;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698