Chromium Code Reviews| 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 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
| 7 var ArrayDataModel = cr.ui.ArrayDataModel; | 7 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 8 var RepeatingButton = cr.ui.RepeatingButton; | 8 var RepeatingButton = cr.ui.RepeatingButton; |
| 9 | 9 |
| 10 // | 10 // |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 223 this.updateAccountPicture_(); | 223 this.updateAccountPicture_(); |
| 224 | 224 |
| 225 $('account-picture').onclick = this.showImagerPickerOverlay_; | 225 $('account-picture').onclick = this.showImagerPickerOverlay_; |
| 226 $('change-picture-caption').onclick = this.showImagerPickerOverlay_; | 226 $('change-picture-caption').onclick = this.showImagerPickerOverlay_; |
| 227 | 227 |
| 228 $('manage-accounts-button').onclick = function(event) { | 228 $('manage-accounts-button').onclick = function(event) { |
| 229 OptionsPage.navigateToPage('accounts'); | 229 OptionsPage.navigateToPage('accounts'); |
| 230 chrome.send('coreOptionsUserMetricsAction', | 230 chrome.send('coreOptionsUserMetricsAction', |
| 231 ['Options_ManageAccounts']); | 231 ['Options_ManageAccounts']); |
| 232 }; | 232 }; |
| 233 $('hotword-app-list').hidden = | |
| 234 !loadTimeData.getBoolean('appListHotwordShown'); | |
|
Evan Stade
2014/02/12 23:01:49
call this shouldShowAppListHotword
Jun Mukai
2014/02/13 00:08:31
Done.
| |
| 233 } else { | 235 } else { |
| 234 $('import-data').onclick = function(event) { | 236 $('import-data').onclick = function(event) { |
| 235 ImportDataOverlay.show(); | 237 ImportDataOverlay.show(); |
| 236 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); | 238 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); |
| 237 }; | 239 }; |
| 238 | 240 |
| 239 if ($('themes-native-button')) { | 241 if ($('themes-native-button')) { |
| 240 $('themes-native-button').onclick = function(event) { | 242 $('themes-native-button').onclick = function(event) { |
| 241 chrome.send('themesSetNative'); | 243 chrome.send('themesSetNative'); |
| 242 }; | 244 }; |
| (...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1609 BrowserOptions.getLoggedInUsername = function() { | 1611 BrowserOptions.getLoggedInUsername = function() { |
| 1610 return BrowserOptions.getInstance().username_; | 1612 return BrowserOptions.getInstance().username_; |
| 1611 }; | 1613 }; |
| 1612 } | 1614 } |
| 1613 | 1615 |
| 1614 // Export | 1616 // Export |
| 1615 return { | 1617 return { |
| 1616 BrowserOptions: BrowserOptions | 1618 BrowserOptions: BrowserOptions |
| 1617 }; | 1619 }; |
| 1618 }); | 1620 }); |
| OLD | NEW |