| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 ResetProfileSettingsBanner = options.ResetProfileSettingsBanner; | 7 var ResetProfileSettingsBanner = options.ResetProfileSettingsBanner; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * ResetProfileSettingsOverlay class | 10 * ResetProfileSettingsOverlay class |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 [$('send-settings').checked]); | 39 [$('send-settings').checked]); |
| 40 }; | 40 }; |
| 41 $('expand-feedback').onclick = function(event) { | 41 $('expand-feedback').onclick = function(event) { |
| 42 var feedbackTemplate = $('feedback-template'); | 42 var feedbackTemplate = $('feedback-template'); |
| 43 feedbackTemplate.hidden = !feedbackTemplate.hidden; | 43 feedbackTemplate.hidden = !feedbackTemplate.hidden; |
| 44 }; | 44 }; |
| 45 }, | 45 }, |
| 46 | 46 |
| 47 /** @override */ | 47 /** @override */ |
| 48 didShowPage: function() { | 48 didShowPage: function() { |
| 49 ResetProfileSettingsBanner.dismiss(); | |
| 50 chrome.send('onShowResetProfileDialog'); | 49 chrome.send('onShowResetProfileDialog'); |
| 51 }, | 50 }, |
| 52 | 51 |
| 53 /** @override */ | 52 /** @override */ |
| 54 didClosePage: function() { | 53 didClosePage: function() { |
| 55 chrome.send('onHideResetProfileDialog'); | 54 chrome.send('onHideResetProfileDialog'); |
| 56 }, | 55 }, |
| 57 }; | 56 }; |
| 58 | 57 |
| 59 /** | 58 /** |
| (...skipping 27 matching lines...) Expand all Loading... |
| 87 var input = new JsEvalContext(feedbackListData); | 86 var input = new JsEvalContext(feedbackListData); |
| 88 var output = $('feedback-template'); | 87 var output = $('feedback-template'); |
| 89 jstProcess(input, output); | 88 jstProcess(input, output); |
| 90 }; | 89 }; |
| 91 | 90 |
| 92 // Export | 91 // Export |
| 93 return { | 92 return { |
| 94 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay | 93 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay |
| 95 }; | 94 }; |
| 96 }); | 95 }); |
| OLD | NEW |