Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is part of the go/unified-accessibility-component-extensions effort (item 3). Process: - open out/Release/resources/chromeos/accessibility/chromevox/chromeVox*.js - search for the last instances of 'goog.provide' (which is in topological dependency order) - convert that class to an ES6 module R=josiahk@google.com AX-Relnotes: n/a Bug: none Test: cq Change-Id: I0efe93817baabbfe7248aa1750ca87c6f0afe682 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3535079 Reviewed-by: Josiah Krutz <josiahk@google.com> Commit-Queue: David Tseng <dtseng@chromium.org> Cr-Commit-Position: refs/heads/main@{#983018}
- Loading branch information
1 parent
1d0041a
commit 5ed67ba
Showing
12 changed files
with
115 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
chrome/browser/resources/chromeos/accessibility/chromevox/panel/panel_interface.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2022 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. | ||
|
||
/** | ||
* @fileoverview An interface to control the ChromeVox Panel. | ||
*/ | ||
|
||
export class PanelInterface { | ||
/** | ||
* Close the menus and restore focus to the page. If a menu item's callback | ||
* was queued, execute it once focus is restored. | ||
*/ | ||
closeMenusAndRestoreFocus() {} | ||
|
||
/** | ||
* A callback function to be executed to perform the action from selecting | ||
* a menu item after the menu has been closed and focus has been restored | ||
* to the page or wherever it was previously. | ||
* @param {?Function} callback | ||
*/ | ||
setPendingCallback(callback) {} | ||
} | ||
|
||
/** @type {PanelInterface} */ | ||
PanelInterface.instance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.