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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_shifter.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/injected/navigation_shifter.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_shifter.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_shifter.js
index 61e11ca419bbe0446a76b40f525dd1890fa04d27..bbc59dc0a6f51e5f7566a24179e8d3f68cb48a9c 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_shifter.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/navigation_shifter.js
@@ -165,8 +165,9 @@ cvox.NavigationShifter.prototype.getGranularityMsg = function() {
cvox.NavigationShifter.prototype.makeMoreGranular = function() {
goog.base(this, 'makeMoreGranular');
this.currentWalkerIndex_ = Math.max(this.currentWalkerIndex_ - 1, 0);
- if (!cvox.NavigationShifter.allowSentence && this.currentWalkerIndex_ ==
- cvox.NavigationShifter.GRANULARITIES.SENTENCE) {
+ if (!cvox.NavigationShifter.allowSentence &&
+ this.currentWalkerIndex_ ==
+ cvox.NavigationShifter.GRANULARITIES.SENTENCE) {
this.currentWalkerIndex_--;
}
this.currentWalker_ = this.walkers_[this.currentWalkerIndex_];
@@ -179,8 +180,9 @@ cvox.NavigationShifter.prototype.makeLessGranular = function() {
goog.base(this, 'makeLessGranular');
this.currentWalkerIndex_ =
Math.min(this.currentWalkerIndex_ + 1, this.walkers_.length - 1);
- if (!cvox.NavigationShifter.allowSentence && this.currentWalkerIndex_ ==
- cvox.NavigationShifter.GRANULARITIES.SENTENCE) {
+ if (!cvox.NavigationShifter.allowSentence &&
+ this.currentWalkerIndex_ ==
+ cvox.NavigationShifter.GRANULARITIES.SENTENCE) {
this.currentWalkerIndex_++;
}
this.currentWalker_ = this.walkers_[this.currentWalkerIndex_];
@@ -246,12 +248,8 @@ cvox.NavigationShifter.prototype.reset_ = function() {
this.characterWalker_ = new cvox.CharacterWalker();
this.walkers_ = [
- this.characterWalker_,
- this.wordWalker_,
- this.lineWalker_,
- this.sentenceWalker_,
- this.objectWalker_,
- this.groupWalker_
+ this.characterWalker_, this.wordWalker_, this.lineWalker_,
+ this.sentenceWalker_, this.objectWalker_, this.groupWalker_
];
this.currentWalkerIndex_ = this.walkers_.indexOf(this.groupWalker_);

Powered by Google App Engine
This is Rietveld 408576698