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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js

Issue 2104663003: Prepare ChromeVox for webstore release. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix key maps. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
index be3ffc717e0bbc8b173c64a5b6041c92cadcdb57..fa7cc95a110eaf94f974795f6cce042e9405c0b7 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
@@ -11,6 +11,7 @@ goog.provide('DesktopAutomationHandler');
goog.require('AutomationObjectConstructorInstaller');
goog.require('BaseAutomationHandler');
goog.require('ChromeVoxState');
+goog.require('Stubs');
goog.require('editing.TextEditHandler');
goog.scope(function() {
@@ -101,8 +102,7 @@ DesktopAutomationHandler.prototype = {
// Don't process nodes inside of web content if ChromeVox Next is inactive.
if (node.root.role != RoleType.desktop &&
ChromeVoxState.instance.mode === ChromeVoxMode.CLASSIC) {
- if (cvox.ChromeVox.isChromeOS)
- chrome.accessibilityPrivate.setFocusRing([]);
+ chrome.accessibilityPrivate.setFocusRing([]);
return;
}
@@ -400,8 +400,6 @@ DesktopAutomationHandler.prototype = {
* @private
*/
DesktopAutomationHandler.init_ = function() {
- if (cvox.ChromeVox.isMac)
- return;
chrome.automation.getDesktop(function(desktop) {
ChromeVoxState.desktopAutomationHandler =
new DesktopAutomationHandler(desktop);

Powered by Google App Engine
This is Rietveld 408576698