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 */ var OptionsPage = options.OptionsPage; | 6 /** @const */ var OptionsPage = options.OptionsPage; |
7 | 7 |
8 ////////////////////////////////////////////////////////////////////////////// | 8 ////////////////////////////////////////////////////////////////////////////// |
9 // ContentSettings class: | 9 // ContentSettings class: |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 OptionsPage.navigateToPage('cookies'); | 73 OptionsPage.navigateToPage('cookies'); |
74 }; | 74 }; |
75 $('show-app-cookies-button').onclick = function(event) { | 75 $('show-app-cookies-button').onclick = function(event) { |
76 OptionsPage.navigateToPage('app-cookies'); | 76 OptionsPage.navigateToPage('app-cookies'); |
77 }; | 77 }; |
78 | 78 |
79 var intentsSection = $('intents-section'); | 79 var intentsSection = $('intents-section'); |
80 if (!loadTimeData.getBoolean('enable_web_intents') && intentsSection) | 80 if (!loadTimeData.getBoolean('enable_web_intents') && intentsSection) |
81 intentsSection.parentNode.removeChild(intentsSection); | 81 intentsSection.parentNode.removeChild(intentsSection); |
82 | 82 |
| 83 var webIntentsOptionsButton = $('manage-web-intents-defaults-button'); |
| 84 if (webIntentsOptionsButton) { |
| 85 webIntentsOptionsButton.onclick = function(event) { |
| 86 OptionsPage.navigateToPage('web-intents-defaults'); |
| 87 }; |
| 88 } |
| 89 |
83 $('content-settings-overlay-confirm').onclick = | 90 $('content-settings-overlay-confirm').onclick = |
84 OptionsPage.closeOverlay.bind(OptionsPage); | 91 OptionsPage.closeOverlay.bind(OptionsPage); |
85 | 92 |
86 $('pepper-flash-cameramic-section').style.display = 'none'; | 93 $('pepper-flash-cameramic-section').style.display = 'none'; |
87 $('pepper-flash-cameramic-exceptions-div').style.display = 'none'; | 94 $('pepper-flash-cameramic-exceptions-div').style.display = 'none'; |
88 }, | 95 }, |
89 }; | 96 }; |
90 | 97 |
91 ContentSettings.updateHandlersEnabledRadios = function(enabled) { | 98 ContentSettings.updateHandlersEnabledRadios = function(enabled) { |
92 var selector = '#content-settings-page input[type=radio][value=' + | 99 var selector = '#content-settings-page input[type=radio][value=' + |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 $('pepper-flash-cameramic-section').style.display = ''; | 177 $('pepper-flash-cameramic-section').style.display = ''; |
171 $('pepper-flash-cameramic-exceptions-div').style.display = ''; | 178 $('pepper-flash-cameramic-exceptions-div').style.display = ''; |
172 } | 179 } |
173 | 180 |
174 // Export | 181 // Export |
175 return { | 182 return { |
176 ContentSettings: ContentSettings | 183 ContentSettings: ContentSettings |
177 }; | 184 }; |
178 | 185 |
179 }); | 186 }); |
OLD | NEW |