| Index: third_party/closure_compiler/externs/accessibility_private.js
|
| diff --git a/third_party/closure_compiler/externs/accessibility_private.js b/third_party/closure_compiler/externs/accessibility_private.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8bbd66c79d6ee67ef68072d08ecd11708c2cc04c
|
| --- /dev/null
|
| +++ b/third_party/closure_compiler/externs/accessibility_private.js
|
| @@ -0,0 +1,108 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// This file was generated by:
|
| +// tools/json_schema_compiler/compiler.py.
|
| +// NOTE: The format of types has changed. 'FooType' is now
|
| +// 'chrome.accessibilityPrivate.FooType'.
|
| +// Please run the closure compiler before committing changes.
|
| +// See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_compilation.md
|
| +
|
| +/** @fileoverview Externs generated from namespace: accessibilityPrivate */
|
| +
|
| +/**
|
| + * @const
|
| + */
|
| +chrome.accessibilityPrivate = {};
|
| +
|
| +/**
|
| + * Information about an alert
|
| + * @typedef {{
|
| + * message: string
|
| + * }}
|
| + * @see https://developer.chrome.com/extensions/accessibilityPrivate#type-AlertInfo
|
| + */
|
| +chrome.accessibilityPrivate.AlertInfo;
|
| +
|
| +/**
|
| + * Bounding rectangle in global screen coordinates.
|
| + * @typedef {{
|
| + * left: number,
|
| + * top: number,
|
| + * width: number,
|
| + * height: number
|
| + * }}
|
| + * @see https://developer.chrome.com/extensions/accessibilityPrivate#type-ScreenRect
|
| + */
|
| +chrome.accessibilityPrivate.ScreenRect;
|
| +
|
| +/**
|
| + * @enum {string}
|
| + * @see https://developer.chrome.com/extensions/accessibilityPrivate#type-Gesture
|
| + */
|
| +chrome.accessibilityPrivate.Gesture = {
|
| + CLICK: 'click',
|
| + SWIPE_LEFT1: 'swipeLeft1',
|
| + SWIPE_UP1: 'swipeUp1',
|
| + SWIPE_RIGHT1: 'swipeRight1',
|
| + SWIPE_DOWN1: 'swipeDown1',
|
| + SWIPE_LEFT2: 'swipeLeft2',
|
| + SWIPE_UP2: 'swipeUp2',
|
| + SWIPE_RIGHT2: 'swipeRight2',
|
| + SWIPE_DOWN2: 'swipeDown2',
|
| + SWIPE_LEFT3: 'swipeLeft3',
|
| + SWIPE_UP3: 'swipeUp3',
|
| + SWIPE_RIGHT3: 'swipeRight3',
|
| + SWIPE_DOWN3: 'swipeDown3',
|
| + SWIPE_LEFT4: 'swipeLeft4',
|
| + SWIPE_UP4: 'swipeUp4',
|
| + SWIPE_RIGHT4: 'swipeRight4',
|
| + SWIPE_DOWN4: 'swipeDown4',
|
| +};
|
| +
|
| +/**
|
| + * Enables or disables native accessibility support. Once disabled, it is up to
|
| + * the calling extension to provide accessibility for web contents.
|
| + * @param {boolean} enabled True if native accessibility support should be
|
| + * enabled.
|
| + * @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setNativeAccessibilityEnabled
|
| + */
|
| +chrome.accessibilityPrivate.setNativeAccessibilityEnabled = function(enabled) {};
|
| +
|
| +/**
|
| + * Set the bounds of the accessibility focus ring.
|
| + * @param {!Array<!chrome.accessibilityPrivate.ScreenRect>} rects Array of
|
| + * rectangles to draw the accessibility focus ring around.
|
| + * @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setFocusRing
|
| + */
|
| +chrome.accessibilityPrivate.setFocusRing = function(rects) {};
|
| +
|
| +/**
|
| + * Sets the calling extension as a listener of all keyboard events optionally
|
| + * allowing the calling extension to capture/swallow the key event via DOM apis.
|
| + * Returns false via callback when unable to set the listener.
|
| + * @param {boolean} enabled True if the caller wants to listen to key events;
|
| + * false to stop listening to events. Note that there is only ever one
|
| + * extension listening to key events.
|
| + * @param {boolean} capture True if key events should be swallowed natively and
|
| + * not propagated if preventDefault() gets called by the extension's
|
| + * background page.
|
| + * @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setKeyboardListener
|
| + */
|
| +chrome.accessibilityPrivate.setKeyboardListener = function(enabled, capture) {};
|
| +
|
| +/**
|
| + * Fired whenever ChromeVox should output introduction.
|
| + * @type {!ChromeEvent}
|
| + * @see https://developer.chrome.com/extensions/accessibilityPrivate#event-onIntroduceChromeVox
|
| + */
|
| +chrome.accessibilityPrivate.onIntroduceChromeVox;
|
| +
|
| +/**
|
| + * Fired when an accessibility gesture is detected by the touch exploration
|
| + * controller.
|
| + * @type {!ChromeEvent}
|
| + * @see https://developer.chrome.com/extensions/accessibilityPrivate#event-onAccessibilityGesture
|
| + */
|
| +chrome.accessibilityPrivate.onAccessibilityGesture;
|
|
|