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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.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/cvox2/background/i_search.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js
index 070ba0d68729ab99641e8a23ce740c2def35343a..c47ac58165df49c1a0b0638cfe5975fc2a45527c 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js
@@ -53,7 +53,8 @@ ISearch = function(cursor) {
throw 'Incremental search started from invalid range.';
var leaf = AutomationUtil.findNodePre(
- cursor.node, Dir.FORWARD, AutomationPredicate.leaf) || cursor.node;
+ cursor.node, Dir.FORWARD, AutomationPredicate.leaf) ||
+ cursor.node;
/** @type {!cursors.Cursor} */
this.cursor = cursors.Cursor.fromNode(leaf);
@@ -90,8 +91,7 @@ ISearch.prototype = {
var move = function(curNode) {
var cur = cursors.Cursor.fromNode(curNode);
var prev = cur;
- cur =
- cur.move(cursors.Unit.NODE, cursors.Movement.DIRECTIONAL, dir);
+ cur = cur.move(cursors.Unit.NODE, cursors.Movement.DIRECTIONAL, dir);
if (prev.equals(cur)) {
this.handler_.onSearchReachedBoundary(this.cursor.node);
return;
@@ -171,9 +171,9 @@ ISearchUI.prototype = {
var node = this.iSearch_.cursor.node;
if (!node)
return;
- chrome.extension.getBackgroundPage().ChromeVoxState.instance[
- 'navigateToRange'](
- cursors.Range.fromNode(node));
+ chrome.extension.getBackgroundPage()
+ .ChromeVoxState.instance['navigateToRange'](
+ cursors.Range.fromNode(node));
}.bind(this));
Panel.closeMenusAndRestoreFocus();
return false;
@@ -218,8 +218,11 @@ ISearchUI.prototype = {
*/
output_: function(node) {
Output.forceModeForNextSpeechUtterance(cvox.QueueMode.FLUSH);
- var o = new Output().withRichSpeechAndBraille(
- cursors.Range.fromNode(node), null, Output.EventType.NAVIGATE).go();
+ var o =
+ new Output()
+ .withRichSpeechAndBraille(
+ cursors.Range.fromNode(node), null, Output.EventType.NAVIGATE)
+ .go();
this.background_.setCurrentRange(cursors.Range.fromNode(node));
},

Powered by Google App Engine
This is Rietveld 408576698