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 /** | 5 /** |
6 * @typedef {{ | 6 * @typedef {{ |
7 * creditCardNumber: string, | 7 * creditCardNumber: string, |
8 * expirationMonth: string, | 8 * expirationMonth: string, |
9 * expirationYear: string, | 9 * expirationYear: string, |
10 * guid: string, | 10 * guid: string, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 82 } |
83 }; | 83 }; |
84 </if> | 84 </if> |
85 | 85 |
86 $('autofill-help').onclick = function(event) { | 86 $('autofill-help').onclick = function(event) { |
87 chrome.send('coreOptionsUserMetricsAction', | 87 chrome.send('coreOptionsUserMetricsAction', |
88 ['Options_AutofillShowAbout']); | 88 ['Options_AutofillShowAbout']); |
89 return true; // Always follow the href | 89 return true; // Always follow the href |
90 }; | 90 }; |
91 | 91 |
92 $('autofill-wallet-card-area').hidden = | 92 var enableWalletIntegration = |
93 !loadTimeData.getBoolean('enableAutofillWalletIntegration'); | 93 loadTimeData.getBoolean('enableAutofillWalletIntegration'); |
| 94 $('autofill-wallet-remask-cards-area').hidden = !enableWalletIntegration; |
| 95 $('autofill-wallet-setting-area').hidden = !enableWalletIntegration; |
94 // TODO(estade): there should probably be some indication of success. | 96 // TODO(estade): there should probably be some indication of success. |
95 $('remask-server-cards-link').onclick = function(event) { | 97 $('remask-server-cards-link').onclick = function(event) { |
96 chrome.send('remaskServerCards'); | 98 chrome.send('remaskServerCards'); |
97 }; | 99 }; |
98 | 100 |
99 // TODO(jhawkins): What happens when Autofill is disabled whilst on the | 101 // TODO(jhawkins): What happens when Autofill is disabled whilst on the |
100 // Autofill options page? | 102 // Autofill options page? |
101 }, | 103 }, |
102 | 104 |
103 /** | 105 /** |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 AutofillOptions.getInstance().showEditCreditCardOverlay_(creditCard); | 261 AutofillOptions.getInstance().showEditCreditCardOverlay_(creditCard); |
260 }; | 262 }; |
261 | 263 |
262 // Export | 264 // Export |
263 return { | 265 return { |
264 AutofillOptions: AutofillOptions | 266 AutofillOptions: AutofillOptions |
265 }; | 267 }; |
266 | 268 |
267 }); | 269 }); |
268 | 270 |
OLD | NEW |