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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (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/chromevox/background/mathmaps/math_map.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/mathmaps/math_map.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/mathmaps/math_map.js
index 0fd5306671b0f7fb6098a19f6f01e320e3d034d4..b94705c3b1bb5b8787fdb96e0159b65c8e0a5a0d 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/mathmaps/math_map.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/mathmaps/math_map.js
@@ -26,18 +26,16 @@ cvox.MathMap = function() {
* @type {cvox.MathCompoundStore}
*/
this.store = cvox.MathCompoundStore.getInstance();
- cvox.MathMap.parseFiles(
- cvox.MathMap.FUNCTIONS_FILES_.map(
- function(file) {
- return cvox.MathMap.FUNCTIONS_PATH_ + file;
- }))
- .forEach(goog.bind(this.store.addFunctionRules, this.store));
- cvox.MathMap.parseFiles(
- cvox.MathMap.SYMBOLS_FILES_.map(
- function(file) {
- return cvox.MathMap.SYMBOLS_PATH_ + file;
- }))
- .forEach(goog.bind(this.store.addSymbolRules, this.store));
+ cvox.MathMap
+ .parseFiles(cvox.MathMap.FUNCTIONS_FILES_.map(function(file) {
+ return cvox.MathMap.FUNCTIONS_PATH_ + file;
+ }))
+ .forEach(goog.bind(this.store.addFunctionRules, this.store));
+ cvox.MathMap
+ .parseFiles(cvox.MathMap.SYMBOLS_FILES_.map(function(file) {
+ return cvox.MathMap.SYMBOLS_PATH_ + file;
+ }))
+ .forEach(goog.bind(this.store.addSymbolRules, this.store));
var cstrValues = this.store.getDynamicConstraintValues();
/**
@@ -125,9 +123,8 @@ cvox.MathMap.SYMBOLS_FILES_ = [
* @const
* @private
*/
-cvox.MathMap.FUNCTIONS_FILES_ = [
- 'algebra.json', 'elementary.json', 'hyperbolic.json', 'trigonometry.json'
-];
+cvox.MathMap.FUNCTIONS_FILES_ =
+ ['algebra.json', 'elementary.json', 'hyperbolic.json', 'trigonometry.json'];
/**
@@ -162,10 +159,14 @@ cvox.MathMap.loadFiles = function(files) {
cvox.MathMap.parseFiles = function(files) {
var strs = cvox.MathMap.loadFiles(files);
- return [].concat.apply([], strs.map(
- // Note: As JSON.parse does not expect the value index as the second
- // parameter, we wrap it.
- function(value) { return JSON.parse(value); }));
+ return [].concat.apply(
+ [],
+ strs.map(
+ // Note: As JSON.parse does not expect the value index as the second
+ // parameter, we wrap it.
+ function(value) {
+ return JSON.parse(value);
+ }));
};
@@ -179,7 +180,7 @@ cvox.MathMap.readJSON_ = function(path) {
var url = chrome.extension.getURL(path);
if (!url) {
throw 'Invalid path: ' + path;
- }
+ }
var xhr = new XMLHttpRequest();
xhr.open('GET', url, false);

Powered by Google App Engine
This is Rietveld 408576698