Change log:95336cb92b..191d55580eFull diff:95336cb92b..191d55580eRoll chromium third_party 4e16929f46..3a8f2a9e1e Change log:4e16929f46..3a8f2a9e1eChanged dependencies: * src/tools:c44a3f5eca..f524a53b81DEPS diff:95336cb92b..191d55580e/DEPS No update to Clang. TBR=titovartem@google.com, BUG=None CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal Change-Id: Ic9c4a62b050383646e9fcf5cc07a5653c14ac06e Reviewed-on: https://webrtc-review.googlesource.com/76120 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Artem Titov <titovartem@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23205}
233 lines
8.2 KiB
JavaScript
233 lines
8.2 KiB
JavaScript
// Copyright 2018 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',
|
|
};
|
|
|
|
/**
|
|
* @enum {string}
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#type-SyntheticKeyboardEventType
|
|
*/
|
|
chrome.accessibilityPrivate.SyntheticKeyboardEventType = {
|
|
KEYUP: 'keyup',
|
|
KEYDOWN: 'keydown',
|
|
};
|
|
|
|
/**
|
|
* @typedef {{
|
|
* ctrl: (boolean|undefined),
|
|
* alt: (boolean|undefined),
|
|
* search: (boolean|undefined),
|
|
* shift: (boolean|undefined)
|
|
* }}
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#type-SyntheticKeyboardModifiers
|
|
*/
|
|
chrome.accessibilityPrivate.SyntheticKeyboardModifiers;
|
|
|
|
/**
|
|
* @typedef {{
|
|
* type: !chrome.accessibilityPrivate.SyntheticKeyboardEventType,
|
|
* keyCode: number,
|
|
* modifiers: (!chrome.accessibilityPrivate.SyntheticKeyboardModifiers|undefined)
|
|
* }}
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#type-SyntheticKeyboardEvent
|
|
*/
|
|
chrome.accessibilityPrivate.SyntheticKeyboardEvent;
|
|
|
|
/**
|
|
* @enum {string}
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#type-KeyboardMode
|
|
*/
|
|
chrome.accessibilityPrivate.KeyboardMode = {
|
|
FULL_WIDTH: 'FULL_WIDTH',
|
|
FLOATING: 'FLOATING',
|
|
};
|
|
|
|
/**
|
|
* @enum {string}
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#type-SelectToSpeakState
|
|
*/
|
|
chrome.accessibilityPrivate.SelectToSpeakState = {
|
|
SELECTING: 'selecting',
|
|
SPEAKING: 'speaking',
|
|
INACTIVE: 'inactive',
|
|
};
|
|
|
|
/**
|
|
* 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) {};
|
|
|
|
/**
|
|
* Sets the bounds of the accessibility focus ring.
|
|
* @param {!Array<!chrome.accessibilityPrivate.ScreenRect>} rects Array of
|
|
* rectangles to draw the accessibility focus ring around.
|
|
* @param {string=} color CSS-style hex color string beginning with # like
|
|
* #FF9982 or #EEE.
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setFocusRing
|
|
*/
|
|
chrome.accessibilityPrivate.setFocusRing = function(rects, color) {};
|
|
|
|
/**
|
|
* Sets the bounds of the accessibility highlight.
|
|
* @param {!Array<!chrome.accessibilityPrivate.ScreenRect>} rects Array of
|
|
* rectangles to draw the highlight around.
|
|
* @param {string} color CSS-style hex color string beginning with # like
|
|
* #FF9982 or #EEE.
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setHighlights
|
|
*/
|
|
chrome.accessibilityPrivate.setHighlights = function(rects, color) {};
|
|
|
|
/**
|
|
* 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) {};
|
|
|
|
/**
|
|
* Darkens or undarkens the screen.
|
|
* @param {boolean} enabled True to darken screen; false to undarken screen.
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#method-darkenScreen
|
|
*/
|
|
chrome.accessibilityPrivate.darkenScreen = function(enabled) {};
|
|
|
|
/**
|
|
* Change the keyboard keys captured by Switch Access.
|
|
* @param {!Array<number>} key_codes The key codes for the keys that will be
|
|
* captured.
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setSwitchAccessKeys
|
|
*/
|
|
chrome.accessibilityPrivate.setSwitchAccessKeys = function(key_codes) {};
|
|
|
|
/**
|
|
* Sets current ARC app to use native ARC support.
|
|
* @param {boolean} enabled True for ChromeVox (native), false for TalkBack.
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#method-setNativeChromeVoxArcSupportForCurrentApp
|
|
*/
|
|
chrome.accessibilityPrivate.setNativeChromeVoxArcSupportForCurrentApp = function(enabled) {};
|
|
|
|
/**
|
|
* Sends a fabricated key event.
|
|
* @param {!chrome.accessibilityPrivate.SyntheticKeyboardEvent} keyEvent The
|
|
* event to send.
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#method-sendSyntheticKeyEvent
|
|
*/
|
|
chrome.accessibilityPrivate.sendSyntheticKeyEvent = function(keyEvent) {};
|
|
|
|
/**
|
|
* 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;
|
|
|
|
/**
|
|
* Fired when we first detect two fingers are held down, which can be used to
|
|
* toggle spoken feedback on some touch-only devices.
|
|
* @type {!ChromeEvent}
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#event-onTwoFingerTouchStart
|
|
*/
|
|
chrome.accessibilityPrivate.onTwoFingerTouchStart;
|
|
|
|
/**
|
|
* Fired when the user is no longer holding down two fingers (including
|
|
* releasing one, holding down three, or moving them).
|
|
* @type {!ChromeEvent}
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#event-onTwoFingerTouchStop
|
|
*/
|
|
chrome.accessibilityPrivate.onTwoFingerTouchStop;
|
|
|
|
/**
|
|
* Called by the Select-to-Speak extension when Select-to-Speak has changed states,
|
|
* between selecting with the mouse, speaking, and inactive.
|
|
* @param {!chrome.accessibilityPrivate.SelectToSpeakState} state The current
|
|
* state of the Select-to-Speak extension
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#method-onSelectToSpeakStateChanged
|
|
*/
|
|
chrome.accessibilityPrivate.onSelectToSpeakStateChanged = function(state) {};
|
|
|
|
/**
|
|
* Called when Chrome OS wants to toggle the Select-to-Speak state, between selecting
|
|
* with the mouse, speaking, and inactive
|
|
* @type {!ChromeEvent}
|
|
* @see https://developer.chrome.com/extensions/accessibilityPrivate#event-onSelectToSpeakStateChangeRequested
|
|
*/
|
|
chrome.accessibilityPrivate.onSelectToSpeakStateChangeRequested;
|