| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |