Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: chrome/browser/resources/options/reset_profile_settings_overlay.js

Issue 23450021: Profile Reset dialog: the new section with detailed feedback information (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 /** 8 /**
9 * ResetProfileSettingsOverlay class 9 * ResetProfileSettingsOverlay class
10 * Encapsulated handling of the 'Reset Profile Settings' overlay page. 10 * Encapsulated handling of the 'Reset Profile Settings' overlay page.
(...skipping 19 matching lines...) Expand all
30 OptionsPage.prototype.initializePage.call(this); 30 OptionsPage.prototype.initializePage.call(this);
31 31
32 $('reset-profile-settings-dismiss').onclick = function(event) { 32 $('reset-profile-settings-dismiss').onclick = function(event) {
33 ResetProfileSettingsOverlay.dismiss(); 33 ResetProfileSettingsOverlay.dismiss();
34 }; 34 };
35 $('reset-profile-settings-commit').onclick = function(event) { 35 $('reset-profile-settings-commit').onclick = function(event) {
36 ResetProfileSettingsOverlay.setResettingState(true); 36 ResetProfileSettingsOverlay.setResettingState(true);
37 chrome.send('performResetProfileSettings', 37 chrome.send('performResetProfileSettings',
38 [$('send-settings').checked]); 38 [$('send-settings').checked]);
39 }; 39 };
40 $('expandFeedback').onclick = function(event) {
41 var feedbackTemplate = $('feedbackTemplate');
42 if (feedbackTemplate.hidden)
Evan Stade 2013/09/06 01:05:37 feedbackTemplate.hidden = !feedbackTemplate.hidden
vasilii 2013/09/06 12:39:22 Done.
43 feedbackTemplate.hidden = false;
44 else
45 feedbackTemplate.hidden = true;
46 };
40 }, 47 },
41 48
42 /** @override */ 49 /** @override */
43 didShowPage: function() { 50 didShowPage: function() {
44 chrome.send('onShowResetProfileDialog'); 51 chrome.send('onShowResetProfileDialog');
45 }, 52 },
46 }; 53 };
47 54
48 /** 55 /**
49 * Enables/disables UI elements after/while Chrome is performing a reset. 56 * Enables/disables UI elements after/while Chrome is performing a reset.
(...skipping 20 matching lines...) Expand all
70 }; 77 };
71 78
72 /** 79 /**
73 * Dismisses the overlay. 80 * Dismisses the overlay.
74 */ 81 */
75 ResetProfileSettingsOverlay.dismiss = function() { 82 ResetProfileSettingsOverlay.dismiss = function() {
76 OptionsPage.closeOverlay(); 83 OptionsPage.closeOverlay();
77 ResetProfileSettingsOverlay.setResettingState(false); 84 ResetProfileSettingsOverlay.setResettingState(false);
78 }; 85 };
79 86
87 ResetProfileSettingsOverlay.setFeedbackInfo = function(feedbackListData) {
88 var input = new JsEvalContext(feedbackListData);
89 var output = $('feedbackTemplate');
90 jstProcess(input, output);
91 };
92
80 // Export 93 // Export
81 return { 94 return {
82 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay 95 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay
83 }; 96 };
84 }); 97 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698