OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 /** @const */ var OptionsPage = options.OptionsPage; | 6 /** @const */ var OptionsPage = options.OptionsPage; |
7 | 7 |
8 // Variable to track if a captcha challenge was issued. If this gets set to | 8 // Variable to track if a captcha challenge was issued. If this gets set to |
9 // true, it stays that way until we are told about successful login from | 9 // true, it stays that way until we are told about successful login from |
10 // the browser. This means subsequent errors (like invalid password) are | 10 // the browser. This means subsequent errors (like invalid password) are |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 $('sync-setup-cancel').onclick = | 52 $('sync-setup-cancel').onclick = |
53 $('confirm-everything-cancel').onclick = | 53 $('confirm-everything-cancel').onclick = |
54 $('stop-syncing-cancel').onclick = | 54 $('stop-syncing-cancel').onclick = |
55 $('sync-spinner-cancel').onclick = function() { | 55 $('sync-spinner-cancel').onclick = function() { |
56 self.closeOverlay_(); | 56 self.closeOverlay_(); |
57 }; | 57 }; |
58 $('confirm-everything-ok').onclick = function() { | 58 $('confirm-everything-ok').onclick = function() { |
59 self.sendConfiguration_(); | 59 self.sendConfiguration_(); |
60 }; | 60 }; |
61 $('stop-syncing-ok').onclick = function() { | 61 $('stop-syncing-ok').onclick = function() { |
62 chrome.send('stopSyncing'); | 62 chrome.send('SyncSetupStopSyncing'); |
63 self.closeOverlay_(); | 63 self.closeOverlay_(); |
64 }; | 64 }; |
65 }, | 65 }, |
66 | 66 |
67 showOverlay_: function() { | 67 showOverlay_: function() { |
68 OptionsPage.navigateToPage('syncSetup'); | 68 OptionsPage.navigateToPage('syncSetup'); |
69 }, | 69 }, |
70 | 70 |
71 closeOverlay_: function() { | 71 closeOverlay_: function() { |
72 OptionsPage.closeOverlay(); | 72 OptionsPage.closeOverlay(); |
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 | 888 |
889 SyncSetupOverlay.showStopSyncingUI = function() { | 889 SyncSetupOverlay.showStopSyncingUI = function() { |
890 SyncSetupOverlay.getInstance().showStopSyncingUI_(); | 890 SyncSetupOverlay.getInstance().showStopSyncingUI_(); |
891 }; | 891 }; |
892 | 892 |
893 // Export | 893 // Export |
894 return { | 894 return { |
895 SyncSetupOverlay: SyncSetupOverlay | 895 SyncSetupOverlay: SyncSetupOverlay |
896 }; | 896 }; |
897 }); | 897 }); |
OLD | NEW |