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: third_party/closure_compiler/externs/accessibility_private.js

Issue 2509883002: Select-to-speak extension code (Closed)
Patch Set: Improve @private syntax Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file was generated by:
6 // tools/json_schema_compiler/compiler.py.
7 // NOTE: The format of types has changed. 'FooType' is now
8 // 'chrome.accessibilityPrivate.FooType'.
9 // Please run the closure compiler before committing changes.
10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md
11
12 /** @fileoverview Externs generated from namespace: accessibilityPrivate */
13
14 /**
15 * @const
16 */
17 chrome.accessibilityPrivate = {};
18
19 /**
20 * Information about an alert
21 * @typedef {{
22 * message: string
23 * }}
24 * @see https://developer.chrome.com/extensions/accessibilityPrivate#type-AlertI nfo
25 */
26 chrome.accessibilityPrivate.AlertInfo;
27
28 /**
29 * Bounding rectangle in global screen coordinates.
30 * @typedef {{
31 * left: number,
32 * top: number,
33 * width: number,
34 * height: number
35 * }}
36 * @see https://developer.chrome.com/extensions/accessibilityPrivate#type-Screen Rect
37 */
38 chrome.accessibilityPrivate.ScreenRect;
39
40 /**
41 * @enum {string}
42 * @see https://developer.chrome.com/extensions/accessibilityPrivate#type-Gestur e
43 */
44 chrome.accessibilityPrivate.Gesture = {
45 CLICK: 'click',
46 SWIPE_LEFT1: 'swipeLeft1',
47 SWIPE_UP1: 'swipeUp1',
48 SWIPE_RIGHT1: 'swipeRight1',
49 SWIPE_DOWN1: 'swipeDown1',
50 SWIPE_LEFT2: 'swipeLeft2',
51 SWIPE_UP2: 'swipeUp2',
52 SWIPE_RIGHT2: 'swipeRight2',
53 SWIPE_DOWN2: 'swipeDown2',
54 SWIPE_LEFT3: 'swipeLeft3',
55 SWIPE_UP3: 'swipeUp3',
56 SWIPE_RIGHT3: 'swipeRight3',
57 SWIPE_DOWN3: 'swipeDown3',
58 SWIPE_LEFT4: 'swipeLeft4',
59 SWIPE_UP4: 'swipeUp4',
60 SWIPE_RIGHT4: 'swipeRight4',
61 SWIPE_DOWN4: 'swipeDown4',
62 };
63
64 /**
65 * Enables or disables native accessibility support. Once disabled, it is up to
66 * the calling extension to provide accessibility for web contents.
67 * @param {boolean} enabled True if native accessibility support should be
68 * enabled.
69 * @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setN ativeAccessibilityEnabled
70 */
71 chrome.accessibilityPrivate.setNativeAccessibilityEnabled = function(enabled) {} ;
72
73 /**
74 * Set the bounds of the accessibility focus ring.
75 * @param {!Array<!chrome.accessibilityPrivate.ScreenRect>} rects Array of
76 * rectangles to draw the accessibility focus ring around.
77 * @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setF ocusRing
78 */
79 chrome.accessibilityPrivate.setFocusRing = function(rects) {};
80
81 /**
82 * Sets the calling extension as a listener of all keyboard events optionally
83 * allowing the calling extension to capture/swallow the key event via DOM apis.
84 * Returns false via callback when unable to set the listener.
85 * @param {boolean} enabled True if the caller wants to listen to key events;
86 * false to stop listening to events. Note that there is only ever one
87 * extension listening to key events.
88 * @param {boolean} capture True if key events should be swallowed natively and
89 * not propagated if preventDefault() gets called by the extension's
90 * background page.
91 * @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setK eyboardListener
92 */
93 chrome.accessibilityPrivate.setKeyboardListener = function(enabled, capture) {};
94
95 /**
96 * Fired whenever ChromeVox should output introduction.
97 * @type {!ChromeEvent}
98 * @see https://developer.chrome.com/extensions/accessibilityPrivate#event-onInt roduceChromeVox
99 */
100 chrome.accessibilityPrivate.onIntroduceChromeVox;
101
102 /**
103 * Fired when an accessibility gesture is detected by the touch exploration
104 * controller.
105 * @type {!ChromeEvent}
106 * @see https://developer.chrome.com/extensions/accessibilityPrivate#event-onAcc essibilityGesture
107 */
108 chrome.accessibilityPrivate.onAccessibilityGesture;
OLDNEW
« no previous file with comments | « third_party/closure_compiler/compiled_resources2.gyp ('k') | third_party/closure_compiler/externs/automation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698