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

Side by Side Diff: chrome/browser/resources/options2/browser_options.js

Issue 9168026: Move autocomplete_list.js from options and options2 to shared/js (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright year 2012 Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 cr.define('options', function() { 5 cr.define('options', function() {
6 const OptionsPage = options.OptionsPage; 6 const OptionsPage = options.OptionsPage;
7 const ArrayDataModel = cr.ui.ArrayDataModel; 7 const ArrayDataModel = cr.ui.ArrayDataModel;
8 8
9 // 9 //
10 // BrowserOptions class 10 // BrowserOptions class
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 chrome.send('becomeDefaultBrowser'); 119 chrome.send('becomeDefaultBrowser');
120 }; 120 };
121 } 121 }
122 122
123 // Check if we are in the guest mode. 123 // Check if we are in the guest mode.
124 if (cr.commandLine && cr.commandLine.options['--bwsi']) { 124 if (cr.commandLine && cr.commandLine.options['--bwsi']) {
125 // Hide the startup section. 125 // Hide the startup section.
126 $('startupSection').hidden = true; 126 $('startupSection').hidden = true;
127 } 127 }
128 128
129 var suggestionList = new options.AutocompleteList(); 129 var suggestionList = new cr.ui.AutocompleteList();
130 suggestionList.autoExpands = true; 130 suggestionList.autoExpands = true;
131 suggestionList.suggestionUpdateRequestCallback = 131 suggestionList.suggestionUpdateRequestCallback =
132 this.requestAutocompleteSuggestions_.bind(this); 132 this.requestAutocompleteSuggestions_.bind(this);
133 $('main-content').appendChild(suggestionList); 133 $('main-content').appendChild(suggestionList);
134 this.autocompleteList_ = suggestionList; 134 this.autocompleteList_ = suggestionList;
135 }, 135 },
136 136
137 setSyncEnabled_: function(enabled) { 137 setSyncEnabled_: function(enabled) {
138 this.syncEnabled = enabled; 138 this.syncEnabled = enabled;
139 }, 139 },
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 canBeDefault); 406 canBeDefault);
407 } 407 }
408 }; 408 };
409 409
410 // Export 410 // Export
411 return { 411 return {
412 BrowserOptions: BrowserOptions 412 BrowserOptions: BrowserOptions
413 }; 413 };
414 414
415 }); 415 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698