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 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2433 | 2435 |
2434 settings.hidden = !isVisible; | 2436 settings.hidden = !isVisible; |
2435 }; | 2437 }; |
2436 } | 2438 } |
2437 | 2439 |
2438 // Export | 2440 // Export |
2439 return { | 2441 return { |
2440 BrowserOptions: BrowserOptions | 2442 BrowserOptions: BrowserOptions |
2441 }; | 2443 }; |
2442 }); | 2444 }); |
OLD | NEW |