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 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; | 9 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; |
10 | 10 |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 } | 430 } |
431 | 431 |
432 // Easy Unlock section. | 432 // Easy Unlock section. |
433 if (loadTimeData.getBoolean('easyUnlockEnabled')) { | 433 if (loadTimeData.getBoolean('easyUnlockEnabled')) { |
434 $('easy-unlock-section').hidden = false; | 434 $('easy-unlock-section').hidden = false; |
435 $('easy-unlock-setup-button').onclick = function(event) { | 435 $('easy-unlock-setup-button').onclick = function(event) { |
436 chrome.send('launchEasyUnlockSetup'); | 436 chrome.send('launchEasyUnlockSetup'); |
437 }; | 437 }; |
438 } | 438 } |
439 | 439 |
| 440 // Website Settings section. |
| 441 if (loadTimeData.getBoolean('websiteSettingsManagerEnabled')) { |
| 442 $('website-settings-section').hidden = false; |
| 443 $('website-management-button').onclick = function(event) { |
| 444 OptionsPage.navigateToPage('websiteSettings'); |
| 445 }; |
| 446 } |
| 447 |
440 // Web Content section. | 448 // Web Content section. |
441 $('fontSettingsCustomizeFontsButton').onclick = function(event) { | 449 $('fontSettingsCustomizeFontsButton').onclick = function(event) { |
442 OptionsPage.navigateToPage('fonts'); | 450 OptionsPage.navigateToPage('fonts'); |
443 chrome.send('coreOptionsUserMetricsAction', ['Options_FontSettings']); | 451 chrome.send('coreOptionsUserMetricsAction', ['Options_FontSettings']); |
444 }; | 452 }; |
445 $('defaultFontSize').onchange = function(event) { | 453 $('defaultFontSize').onchange = function(event) { |
446 var value = event.target.options[event.target.selectedIndex].value; | 454 var value = event.target.options[event.target.selectedIndex].value; |
447 Preferences.setIntegerPref( | 455 Preferences.setIntegerPref( |
448 'webkit.webprefs.default_fixed_font_size', | 456 'webkit.webprefs.default_fixed_font_size', |
449 value - OptionsPage.SIZE_DIFFERENCE_FIXED_STANDARD, true); | 457 value - OptionsPage.SIZE_DIFFERENCE_FIXED_STANDARD, true); |
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1879 $('consumer-management-unenroll').hidden = !isEnrolled; | 1887 $('consumer-management-unenroll').hidden = !isEnrolled; |
1880 ConsumerManagementOverlay.setEnrollmentStatus(isEnrolled); | 1888 ConsumerManagementOverlay.setEnrollmentStatus(isEnrolled); |
1881 }; | 1889 }; |
1882 } | 1890 } |
1883 | 1891 |
1884 // Export | 1892 // Export |
1885 return { | 1893 return { |
1886 BrowserOptions: BrowserOptions | 1894 BrowserOptions: BrowserOptions |
1887 }; | 1895 }; |
1888 }); | 1896 }); |
OLD | NEW |