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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/i_search.js

Issue 2092743002: Revert of Make ChromeVox Next a setting in options page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Objects related to incremental search. 6 * @fileoverview Objects related to incremental search.
7 */ 7 */
8 8
9 goog.provide('ISearch'); 9 goog.provide('ISearch');
10 goog.provide('ISearchHandler'); 10 goog.provide('ISearchHandler');
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 }; 107 };
108 108
109 /** 109 /**
110 * @param {Element} input 110 * @param {Element} input
111 * @constructor 111 * @constructor
112 * @implements {ISearchHandler} 112 * @implements {ISearchHandler}
113 */ 113 */
114 ISearchUI = function(input) { 114 ISearchUI = function(input) {
115 /** @type {ChromeVoxState} */ 115 /** @type {ChromeVoxState} */
116 this.background_ = 116 this.background_ =
117 chrome.extension.getBackgroundPage()['ChromeVoxState']['instance']; 117 chrome.extension.getBackgroundPage()['global']['backgroundObj'];
118 this.iSearch_ = new ISearch(this.background_.currentRange.start.node); 118 this.iSearch_ = new ISearch(this.background_.currentRange.start.node);
119 this.input_ = input; 119 this.input_ = input;
120 this.dir_ = Dir.FORWARD; 120 this.dir_ = Dir.FORWARD;
121 this.iSearch_.handler = this; 121 this.iSearch_.handler = this;
122 122
123 this.onKeyDown = this.onKeyDown.bind(this); 123 this.onKeyDown = this.onKeyDown.bind(this);
124 this.onTextInput = this.onTextInput.bind(this); 124 this.onTextInput = this.onTextInput.bind(this);
125 125
126 this.background_['startExcursion'](); 126 this.background_['startExcursion']();
127 input.addEventListener('keydown', this.onKeyDown, true); 127 input.addEventListener('keydown', this.onKeyDown, true);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 this.iSearch_.handler_ = null; 216 this.iSearch_.handler_ = null;
217 this.iSearch_ = null; 217 this.iSearch_ = null;
218 var input = this.input_; 218 var input = this.input_;
219 this.input_ = null; 219 this.input_ = null;
220 input.removeEventListener('keydown', this.onKeyDown, true); 220 input.removeEventListener('keydown', this.onKeyDown, true);
221 input.removeEventListener('textInput', this.onTextInput, true); 221 input.removeEventListener('textInput', this.onTextInput, true);
222 } 222 }
223 }; 223 };
224 224
225 }); // goog.scope 225 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698