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

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

Issue 2008773002: Begin using ChromeVox Next to read tab and window titles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a bunch of tests. Created 4 years, 7 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/background.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
index f43000423454edc5b8f58db6d14475c716952c65..b0c3985cf3393046d40f2a915132a80aa1e78e53 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
@@ -254,8 +254,12 @@ Background.prototype = {
if (mode === ChromeVoxMode.NEXT ||
mode === ChromeVoxMode.FORCE_NEXT) {
(new PanelCommand(PanelCommandType.ENABLE_MENUS)).send();
+ if (cvox.TabsApiHandler)
+ cvox.TabsApiHandler.shouldOutputSpeechAndBraille = false;
} else {
(new PanelCommand(PanelCommandType.DISABLE_MENUS)).send();
+ if (cvox.TabsApiHandler)
+ cvox.TabsApiHandler.shouldOutputSpeechAndBraille = true;
}
// If switching to Classic from any automation-API-based mode,
@@ -318,7 +322,9 @@ Background.prototype = {
* @override
*/
getCurrentRange: function() {
- return this.currentRange_;
+ if (this.currentRange_ && this.currentRange_.isValid())
+ return this.currentRange_;
+ return null;
},
/**

Powered by Google App Engine
This is Rietveld 408576698