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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/page_selection.js

Issue 1362223003: Improve braille related message descriptions and clean up message handling in Chromevox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inputtypeexception
Patch Set: Move another braille message to Msgs.Untranslated Created 5 years, 3 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/common/page_selection.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/page_selection.js b/chrome/browser/resources/chromeos/chromevox/common/page_selection.js
index de87d9f69587dcb277fa628a89e91bd8e1b90e23..7a46db20669b5ad24a436be2df2d4aa9d4eb9530 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/page_selection.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/page_selection.js
@@ -45,18 +45,18 @@ cvox.PageSelection.prototype.getDescription =
if (this.sel_.isReversed() != curSel.isReversed()) {
// A shrinking selection.
desc = navShifter.getDescription(curSel, prevSel);
- desc[0].annotation = cvox.ChromeVox.msgs.getMsg('describe_unselected');
+ desc[0].annotation = Msgs.getMsg('describe_unselected');
desc[0].pushEarcon(cvox.Earcon.SELECTION_REVERSE);
} else {
// A growing selection.
desc = navShifter.getDescription(prevSel, curSel);
- desc[0].annotation = cvox.ChromeVox.msgs.getMsg('describe_selected');
+ desc[0].annotation = Msgs.getMsg('describe_selected');
desc[0].pushEarcon(cvox.Earcon.SELECTION);
if (!this.wasBegin_ && this.sel_.absEquals(curSel.clone().normalize())) {
// A selection has inverted across the start cursor. Describe it.
var prevDesc = navShifter.getDescription(curSel, prevSel);
prevDesc[0].annotation =
- cvox.ChromeVox.msgs.getMsg('describe_unselected');
+ Msgs.getMsg('describe_unselected');
prevDesc[0].pushEarcon(cvox.Earcon.SELECTION_REVERSE);
prevDesc[0].pushEarcon(cvox.Earcon.WRAP);
desc = prevDesc.concat(desc);
@@ -76,7 +76,7 @@ cvox.PageSelection.prototype.getDescription =
cvox.PageSelection.prototype.getFullDescription = function() {
return [new cvox.NavDescription(
{text: window.getSelection().toString(),
- context: cvox.ChromeVox.msgs.getMsg('selection_is')})];
+ context: Msgs.getMsg('selection_is')})];
};

Powered by Google App Engine
This is Rietveld 408576698