| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 14 matching lines...) Expand all Loading... |
| 25 // Inherit PersonalOptions from OptionsPage. | 25 // Inherit PersonalOptions from OptionsPage. |
| 26 __proto__: options.OptionsPage.prototype, | 26 __proto__: options.OptionsPage.prototype, |
| 27 | 27 |
| 28 // Initialize PersonalOptions page. | 28 // Initialize PersonalOptions page. |
| 29 initializePage: function() { | 29 initializePage: function() { |
| 30 // Call base class implementation to start preference initialization. | 30 // Call base class implementation to start preference initialization. |
| 31 OptionsPage.prototype.initializePage.call(this); | 31 OptionsPage.prototype.initializePage.call(this); |
| 32 | 32 |
| 33 var self = this; | 33 var self = this; |
| 34 $('sync-action-link').onclick = function(event) { | 34 $('sync-action-link').onclick = function(event) { |
| 35 chrome.send('showSyncLoginDialog'); | 35 chrome.send('showSyncActionDialog'); |
| 36 }; | 36 }; |
| 37 $('start-stop-sync').onclick = function(event) { | 37 $('start-stop-sync').onclick = function(event) { |
| 38 if (self.syncSetupCompleted) | 38 if (self.syncSetupCompleted) |
| 39 self.showStopSyncingOverlay_(); | 39 self.showStopSyncingOverlay_(); |
| 40 else | 40 else |
| 41 chrome.send('showSyncLoginDialog'); | 41 chrome.send('showSyncLoginDialog'); |
| 42 }; | 42 }; |
| 43 $('customize-sync').onclick = function(event) { | 43 $('customize-sync').onclick = function(event) { |
| 44 chrome.send('showCustomizeSyncDialog'); | 44 chrome.send('showCustomizeSyncDialog'); |
| 45 }; | 45 }; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 PersonalOptions.getInstance()[name + '_'](value); | 196 PersonalOptions.getInstance()[name + '_'](value); |
| 197 }; | 197 }; |
| 198 }); | 198 }); |
| 199 | 199 |
| 200 // Export | 200 // Export |
| 201 return { | 201 return { |
| 202 PersonalOptions: PersonalOptions | 202 PersonalOptions: PersonalOptions |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 }); | 205 }); |
| OLD | NEW |