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

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

Issue 4821003: DOMUI: Turn the google dashboard link into a real link and fix the behavior of (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 10 years, 1 month 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
« no previous file with comments | « chrome/browser/resources/options/personal_options.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 }; 66 };
67 } 67 }
68 68
69 if (!cr.isChromeOS && navigator.platform.match(/linux|BSD/i)) { 69 if (!cr.isChromeOS && navigator.platform.match(/linux|BSD/i)) {
70 $('themes_GTK_button').onclick = function(event) { 70 $('themes_GTK_button').onclick = function(event) {
71 chrome.send('themesSetGTK'); 71 chrome.send('themesSetGTK');
72 }; 72 };
73 $('themes_set_classic').onclick = function(event) { 73 $('themes_set_classic').onclick = function(event) {
74 chrome.send('themesReset'); 74 chrome.send('themesReset');
75 }; 75 };
76 $('themes-gallery').onclick = function(event) {
77 chrome.send('themesGallery');
78 }
79 } 76 }
80 77
81 if (cr.isMac || cr.isWindows || cr.isChromeOS) { 78 if (cr.isMac || cr.isWindows || cr.isChromeOS) {
82 $('themes_reset').onclick = function(event) { 79 $('themes_reset').onclick = function(event) {
83 chrome.send('themesReset'); 80 chrome.send('themesReset');
84 }; 81 };
85 $('themes-gallery').onclick = function(event) {
86 chrome.send('themesGallery');
87 }
88 } 82 }
89 83
90 if (cr.isChromeOS) { 84 if (cr.isChromeOS) {
91 chrome.send('loadAccountPicture'); 85 chrome.send('loadAccountPicture');
92 } 86 }
93 }, 87 },
94 88
95 showStopSyncingOverlay_: function(event) { 89 showStopSyncingOverlay_: function(event) {
96 AlertOverlay.show( 90 AlertOverlay.show(
97 localStrings.getString('stop_syncing_title'), 91 localStrings.getString('stop_syncing_title'),
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 PersonalOptions.getInstance()[name + '_'](value); 200 PersonalOptions.getInstance()[name + '_'](value);
207 }; 201 };
208 }); 202 });
209 203
210 // Export 204 // Export
211 return { 205 return {
212 PersonalOptions: PersonalOptions 206 PersonalOptions: PersonalOptions
213 }; 207 };
214 208
215 }); 209 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/personal_options.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698