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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/traverse_content.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/common/traverse_content.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/traverse_content.js b/chrome/browser/resources/chromeos/chromevox/common/traverse_content.js
index 4ca1ec4183cf5e98f2130e3d1b7278ea8b14cea9..a473d31121eb92451ce94541c48b386743bf12a2 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/traverse_content.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/traverse_content.js
@@ -118,12 +118,11 @@ cvox.TraverseContent.kParagraph = 'paragraph';
* @type {Array<string>}
* @const
*/
-cvox.TraverseContent.kAllGrains =
- [cvox.TraverseContent.kParagraph,
- cvox.TraverseContent.kSentence,
- cvox.TraverseContent.kLine,
- cvox.TraverseContent.kWord,
- cvox.TraverseContent.kCharacter];
+cvox.TraverseContent.kAllGrains = [
+ cvox.TraverseContent.kParagraph, cvox.TraverseContent.kSentence,
+ cvox.TraverseContent.kLine, cvox.TraverseContent.kWord,
+ cvox.TraverseContent.kCharacter
+];
/**
* Set the current position to match the current WebKit selection.
@@ -383,11 +382,7 @@ cvox.TraverseContent.prototype.movePrev = function(grain) {
* it should break a sentence or line.
*/
cvox.TraverseContent.prototype.getBreakTags = function() {
- return {
- 'A': this.breakAtLinks,
- 'BR': true,
- 'HR': true
- };
+ return {'A': this.breakAtLinks, 'BR': true, 'HR': true};
};
/**
@@ -409,7 +404,7 @@ cvox.TraverseContent.prototype.nextElement = function(grain, domObj) {
var result = this.moveNext(grain);
if (result != null &&
(!cvox.DomUtil.isDescendantOfNode(
- this.startCursor_.node, this.currentDomObj) ||
+ this.startCursor_.node, this.currentDomObj) ||
!cvox.DomUtil.isDescendantOfNode(
this.endCursor_.node, this.currentDomObj))) {
return null;
@@ -438,7 +433,7 @@ cvox.TraverseContent.prototype.prevElement = function(grain, domObj) {
var result = this.movePrev(grain);
if (result != null &&
(!cvox.DomUtil.isDescendantOfNode(
- this.startCursor_.node, this.currentDomObj) ||
+ this.startCursor_.node, this.currentDomObj) ||
!cvox.DomUtil.isDescendantOfNode(
this.endCursor_.node, this.currentDomObj))) {
return null;

Powered by Google App Engine
This is Rietveld 408576698