| 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 ///////////////////////////////////////////////////////////////////////////// | 6 ///////////////////////////////////////////////////////////////////////////// |
| 7 // OptionsPage class: | 7 // OptionsPage class: |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Base class for options page. | 10 * Base class for options page. |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 OptionsPage.setClearPluginLSODataEnabled = function(enabled) { | 620 OptionsPage.setClearPluginLSODataEnabled = function(enabled) { |
| 621 if (enabled) { | 621 if (enabled) { |
| 622 document.documentElement.setAttribute( | 622 document.documentElement.setAttribute( |
| 623 'flashPluginSupportsClearSiteData', ''); | 623 'flashPluginSupportsClearSiteData', ''); |
| 624 } else { | 624 } else { |
| 625 document.documentElement.removeAttribute( | 625 document.documentElement.removeAttribute( |
| 626 'flashPluginSupportsClearSiteData'); | 626 'flashPluginSupportsClearSiteData'); |
| 627 } | 627 } |
| 628 }; | 628 }; |
| 629 | 629 |
| 630 OptionsPage.setPepperFlashSettingsEnabled = function(enabled) { |
| 631 if (enabled) { |
| 632 document.documentElement.setAttribute( |
| 633 'enablePepperFlashSettings', ''); |
| 634 } else { |
| 635 document.documentElement.removeAttribute( |
| 636 'enablePepperFlashSettings'); |
| 637 } |
| 638 }; |
| 639 |
| 630 OptionsPage.prototype = { | 640 OptionsPage.prototype = { |
| 631 __proto__: cr.EventTarget.prototype, | 641 __proto__: cr.EventTarget.prototype, |
| 632 | 642 |
| 633 /** | 643 /** |
| 634 * The parent page of this option page, or null for top-level pages. | 644 * The parent page of this option page, or null for top-level pages. |
| 635 * @type {OptionsPage} | 645 * @type {OptionsPage} |
| 636 */ | 646 */ |
| 637 parentPage: null, | 647 parentPage: null, |
| 638 | 648 |
| 639 /** | 649 /** |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 canShowPage: function() { | 887 canShowPage: function() { |
| 878 return true; | 888 return true; |
| 879 }, | 889 }, |
| 880 }; | 890 }; |
| 881 | 891 |
| 882 // Export | 892 // Export |
| 883 return { | 893 return { |
| 884 OptionsPage: OptionsPage | 894 OptionsPage: OptionsPage |
| 885 }; | 895 }; |
| 886 }); | 896 }); |
| OLD | NEW |