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

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

Issue 1306773003: Make earcon ids strings instead of numbers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_unused_earcons
Patch Set: Fixed test Created 5 years, 4 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 ad39e4a59e3e00d0923e3a89949d4167a127b0cd..de87d9f69587dcb277fa628a89e91bd8e1b90e23 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/page_selection.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/page_selection.js
@@ -46,19 +46,19 @@ cvox.PageSelection.prototype.getDescription =
// A shrinking selection.
desc = navShifter.getDescription(curSel, prevSel);
desc[0].annotation = cvox.ChromeVox.msgs.getMsg('describe_unselected');
- desc[0].pushEarcon(cvox.AbstractEarcons.SELECTION_REVERSE);
+ 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].pushEarcon(cvox.AbstractEarcons.SELECTION);
+ 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');
- prevDesc[0].pushEarcon(cvox.AbstractEarcons.SELECTION_REVERSE);
- prevDesc[0].pushEarcon(cvox.AbstractEarcons.WRAP);
+ prevDesc[0].pushEarcon(cvox.Earcon.SELECTION_REVERSE);
+ prevDesc[0].pushEarcon(cvox.Earcon.WRAP);
desc = prevDesc.concat(desc);
}
}

Powered by Google App Engine
This is Rietveld 408576698