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

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

Issue 6150003: DOMUI: Implement the i18n-options attribute that allows the client to load (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit fix. Created 9 years, 11 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 8
9 // State variables. 9 // State variables.
10 var syncEnabled = false; 10 var syncEnabled = false;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 $('autofill-settings').onclick = function(event) { 52 $('autofill-settings').onclick = function(event) {
53 OptionsPage.showPageByName('autoFillOptions'); 53 OptionsPage.showPageByName('autoFillOptions');
54 chrome.send('coreOptionsUserMetricsAction', 54 chrome.send('coreOptionsUserMetricsAction',
55 ['Options_ShowAutoFillSettings']); 55 ['Options_ShowAutoFillSettings']);
56 }; 56 };
57 $('themes-reset').onclick = function(event) { 57 $('themes-reset').onclick = function(event) {
58 chrome.send('themesReset'); 58 chrome.send('themesReset');
59 }; 59 };
60 60
61 // Initialize sync select control. 61 // Initialize sync select control.
62 $('sync-select').initializeValues(templateData.syncSelectList);
63 $('sync-select').onchange = function(event) { 62 $('sync-select').onchange = function(event) {
64 self.updateSyncSelection_(); 63 self.updateSyncSelection_();
65 } 64 }
66 65
67 var syncCheckboxes = $('sync-table').getElementsByTagName('input'); 66 var syncCheckboxes = $('sync-table').getElementsByTagName('input');
68 for (var i = 0; i < syncCheckboxes.length; i++) { 67 for (var i = 0; i < syncCheckboxes.length; i++) {
69 if (syncCheckboxes[i].type == "checkbox") { 68 if (syncCheckboxes[i].type == "checkbox") {
70 syncCheckboxes[i].onclick = function(event) { 69 syncCheckboxes[i].onclick = function(event) {
71 chrome.send('updatePreferredDataTypes'); 70 chrome.send('updatePreferredDataTypes');
72 }; 71 };
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 PersonalOptions.getInstance()[name + '_'](value); 238 PersonalOptions.getInstance()[name + '_'](value);
240 }; 239 };
241 }); 240 });
242 241
243 // Export 242 // Export
244 return { 243 return {
245 PersonalOptions: PersonalOptions 244 PersonalOptions: PersonalOptions
246 }; 245 };
247 246
248 }); 247 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/personal_options.html ('k') | chrome/browser/resources/options/pref_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698