OLD | NEW |
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 Loading... |
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 Loading... |
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 }); |
OLD | NEW |