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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/nav_description.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/common/nav_description.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/nav_description.js b/chrome/browser/resources/chromeos/chromevox/common/nav_description.js
index a158b5746c88b2fcc90478ca022edc60528e24da..15b957dae00ef1bc827f1f668a8d1630e6d34efd 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/nav_description.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/nav_description.js
@@ -58,11 +58,10 @@ cvox.NavDescription = function(kwargs) {
* @return {boolean} true if this description is empty.
*/
cvox.NavDescription.prototype.isEmpty = function() {
- return (this.context.length == 0 &&
- this.earcons.length == 0 &&
- this.text.length == 0 &&
- this.userValue.length == 0 &&
- this.annotation.length == 0);
+ return (
+ this.context.length == 0 && this.earcons.length == 0 &&
+ this.text.length == 0 && this.userValue.length == 0 &&
+ this.annotation.length == 0);
};
@@ -71,11 +70,10 @@ cvox.NavDescription.prototype.isEmpty = function() {
*/
cvox.NavDescription.prototype.toString = function() {
return 'NavDescription(context="' + this.context + '" ' +
- ' text="' + this.text + '" ' +
- ' userValue="' + this.userValue + '" ' +
- ' annotation="' + this.annotation +
- (this.category ? '" category="' + this.category + '")' : '') +
- '")';
+ ' text="' + this.text + '" ' +
+ ' userValue="' + this.userValue + '" ' +
+ ' annotation="' + this.annotation +
+ (this.category ? '" category="' + this.category + '")' : '') + '")';
};
@@ -117,9 +115,8 @@ cvox.NavDescription.prototype.speak = function(
queueMode = cvox.QueueMode.QUEUE;
}
- speakArgs.push([this.text,
- queueMode,
- this.personality ? this.personality : {}]);
+ speakArgs.push(
+ [this.text, queueMode, this.personality ? this.personality : {}]);
queueMode = cvox.QueueMode.QUEUE;
if (this.userValue) {
@@ -156,8 +153,6 @@ cvox.NavDescription.prototype.speak = function(
* @return {boolean} True if equal.
*/
cvox.NavDescription.prototype.equals = function(that) {
- return this.context == that.context &&
- this.text == that.text &&
- this.userValue == that.userValue &&
- this.annotation == that.annotation;
+ return this.context == that.context && this.text == that.text &&
+ this.userValue == that.userValue && this.annotation == that.annotation;
};

Powered by Google App Engine
This is Rietveld 408576698