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

Unified Diff: chrome/browser/resources/chromeos/chromevox/speech_rules/math_simple_store.js

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (Closed)
Patch Set: Created 3 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/speech_rules/math_simple_store.js
diff --git a/chrome/browser/resources/chromeos/chromevox/speech_rules/math_simple_store.js b/chrome/browser/resources/chromeos/chromevox/speech_rules/math_simple_store.js
index 1ca1a9b27307b41f2d99b1863c097c069a5c5c7d..92d0b78381bda4a454332a04fb6e236c6de7adb7 100644
--- a/chrome/browser/resources/chromeos/chromevox/speech_rules/math_simple_store.js
+++ b/chrome/browser/resources/chromeos/chromevox/speech_rules/math_simple_store.js
@@ -25,7 +25,7 @@ goog.require('cvox.SpeechRule');
*/
cvox.MathSimpleStore = function() {
goog.base(this);
- };
+};
goog.inherits(cvox.MathSimpleStore, cvox.MathStore);
@@ -38,14 +38,14 @@ goog.inherits(cvox.MathSimpleStore, cvox.MathStore);
* mapping.
*/
cvox.MathSimpleStore.prototype.defineRulesFromMappings = function(
- name, str, mapping) {
+ name, str, mapping) {
for (var domain in mapping) {
for (var style in mapping[domain]) {
var content = mapping[domain][style];
var cstr = 'self::text() = "' + str + '"';
var rule = this.defineRule(
- name, domain + '.' + style, '[t] "' + content + '"',
- 'self::text()', cstr);
+ name, domain + '.' + style, '[t] "' + content + '"', 'self::text()',
+ cstr);
}
}
};
@@ -135,9 +135,10 @@ cvox.MathCompoundStore.prototype.lookupString = function(text, dynamic) {
return '';
}
return rule.action.components
- .map(function(comp) {
- return comp.content.slice(1, -1);})
- .join(' ');
+ .map(function(comp) {
+ return comp.content.slice(1, -1);
+ })
+ .join(' ');
};
@@ -154,9 +155,9 @@ cvox.MathCompoundStore.prototype.getDynamicConstraintValues = function() {
var set = newCstr[key];
if (set) {
newCstr[key] = cvox.MathUtil.union(set, cstr[key]);
- } else {
+ } else {
newCstr[key] = cstr[key];
- }
+ }
}
}
return newCstr;

Powered by Google App Engine
This is Rietveld 408576698