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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/node_state.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/node_state.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/node_state.js b/chrome/browser/resources/chromeos/chromevox/common/node_state.js
index 6abc835bd65a9d68e5a1215e006364415009ffc8..d7f97fec38275f842a01bb593d1065177bf2aa47 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/node_state.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/node_state.js
@@ -9,6 +9,8 @@
goog.provide('cvox.NodeState');
goog.provide('cvox.NodeStateUtil');
+goog.require('Msgs');
+
/**
* Holds the state of a node. It is an Array or Arrays of strings and numbers.
* Each sub array is in the format:
@@ -38,11 +40,11 @@ cvox.NodeStateUtil.expand = function(state) {
}
var args = s.slice(1).map(function(a) {
if (typeof a == 'number') {
- return cvox.ChromeVox.msgs.getNumber(a);
+ return Msgs.getNumber(a);
}
return a;
});
- return cvox.ChromeVox.msgs.getMsg(/** @type {string} */ (s[0]), args);
+ return Msgs.getMsg(/** @type {string} */ (s[0]), args);
}).join(' ');
} catch (e) {
throw new Error('error: ' + e + ' state: ' + state);

Powered by Google App Engine
This is Rietveld 408576698