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

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: ReplaceChars() 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 $('expand-feedback').onclick = function(event) {
41 var feedbackTemplate = $('feedback-template');
42 feedbackTemplate.hidden = !feedbackTemplate.hidden;
43 };
40 }, 44 },
41 45
42 /** @override */ 46 /** @override */
43 didShowPage: function() { 47 didShowPage: function() {
44 chrome.send('onShowResetProfileDialog'); 48 chrome.send('onShowResetProfileDialog');
45 }, 49 },
46 }; 50 };
47 51
48 /** 52 /**
49 * Enables/disables UI elements after/while Chrome is performing a reset. 53 * Enables/disables UI elements after/while Chrome is performing a reset.
(...skipping 20 matching lines...) Expand all
70 }; 74 };
71 75
72 /** 76 /**
73 * Dismisses the overlay. 77 * Dismisses the overlay.
74 */ 78 */
75 ResetProfileSettingsOverlay.dismiss = function() { 79 ResetProfileSettingsOverlay.dismiss = function() {
76 OptionsPage.closeOverlay(); 80 OptionsPage.closeOverlay();
77 ResetProfileSettingsOverlay.setResettingState(false); 81 ResetProfileSettingsOverlay.setResettingState(false);
78 }; 82 };
79 83
84 ResetProfileSettingsOverlay.setFeedbackInfo = function(feedbackListData) {
85 var input = new JsEvalContext(feedbackListData);
Vitaly Pavlenko 2014/09/08 22:20:32 I'm trying to understand, what does JsEvalContext
Evan Stade 2014/09/08 22:26:34 that's probably because your console is in the con
86 var output = $('feedback-template');
87 jstProcess(input, output);
88 };
89
80 // Export 90 // Export
81 return { 91 return {
82 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay 92 ResetProfileSettingsOverlay: ResetProfileSettingsOverlay
83 }; 93 };
84 }); 94 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698