| 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.exportPath('options'); | 5 cr.exportPath('options'); |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @typedef {{actionLinkText: (string|undefined), | 8 * @typedef {{actionLinkText: (string|undefined), |
| 9 * childUser: (boolean|undefined), | 9 * childUser: (boolean|undefined), |
| 10 * hasError: (boolean|undefined), | 10 * hasError: (boolean|undefined), |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 }; | 348 }; |
| 349 $('pointer-settings-button').onclick = function(evt) { | 349 $('pointer-settings-button').onclick = function(evt) { |
| 350 PageManager.showPageByName('pointer-overlay'); | 350 PageManager.showPageByName('pointer-overlay'); |
| 351 chrome.send('coreOptionsUserMetricsAction', | 351 chrome.send('coreOptionsUserMetricsAction', |
| 352 ['Options_ShowTouchpadSettings']); | 352 ['Options_ShowTouchpadSettings']); |
| 353 }; | 353 }; |
| 354 if (loadTimeData.getBoolean('enableStorageManager')) { | 354 if (loadTimeData.getBoolean('enableStorageManager')) { |
| 355 $('storage-manager-button').hidden = false; | 355 $('storage-manager-button').hidden = false; |
| 356 $('storage-manager-button').onclick = function(evt) { | 356 $('storage-manager-button').onclick = function(evt) { |
| 357 PageManager.showPageByName('storage'); | 357 PageManager.showPageByName('storage'); |
| 358 chrome.send('coreOptionsUserMetricsAction', |
| 359 ['Options_ShowStorageManager']); |
| 358 }; | 360 }; |
| 359 } | 361 } |
| 360 } | 362 } |
| 361 | 363 |
| 362 // Search section. | 364 // Search section. |
| 363 $('manage-default-search-engines').onclick = function(event) { | 365 $('manage-default-search-engines').onclick = function(event) { |
| 364 PageManager.showPageByName('searchEngines'); | 366 PageManager.showPageByName('searchEngines'); |
| 365 chrome.send('coreOptionsUserMetricsAction', | 367 chrome.send('coreOptionsUserMetricsAction', |
| 366 ['Options_ManageSearchEngines']); | 368 ['Options_ManageSearchEngines']); |
| 367 }; | 369 }; |
| (...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2447 | 2449 |
| 2448 settings.hidden = !isVisible; | 2450 settings.hidden = !isVisible; |
| 2449 }; | 2451 }; |
| 2450 } | 2452 } |
| 2451 | 2453 |
| 2452 // Export | 2454 // Export |
| 2453 return { | 2455 return { |
| 2454 BrowserOptions: BrowserOptions | 2456 BrowserOptions: BrowserOptions |
| 2455 }; | 2457 }; |
| 2456 }); | 2458 }); |
| OLD | NEW |