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 * accountInfo: (string|undefined), | 9 * accountInfo: (string|undefined), |
10 * childUser: (boolean|undefined), | 10 * childUser: (boolean|undefined), |
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 var androidAppSettings = $('android-apps-settings'); | 863 var androidAppSettings = $('android-apps-settings'); |
864 if (androidAppSettings != null) | 864 if (androidAppSettings != null) |
865 androidAppSettings.hidden = isArcEnabled; | 865 androidAppSettings.hidden = isArcEnabled; |
866 | 866 |
867 var talkbackSettingsButton = $('talkback-settings-button'); | 867 var talkbackSettingsButton = $('talkback-settings-button'); |
868 if (talkbackSettingsButton != null) | 868 if (talkbackSettingsButton != null) |
869 talkbackSettingsButton.hidden = isArcEnabled; | 869 talkbackSettingsButton.hidden = isArcEnabled; |
870 }); | 870 }); |
871 | 871 |
872 $('android-apps-settings-link').addEventListener('click', function(e) { | 872 $('android-apps-settings-link').addEventListener('click', function(e) { |
873 // MouseEvent.detail indicates the current click count (or tap | 873 chrome.send('showAndroidAppsSettings'); |
874 // count, in the case of touch events) in the 'click' event. | |
875 var activatedFromKeyboard = e.detail == 0; | |
876 chrome.send('showAndroidAppsSettings', [activatedFromKeyboard]); | |
877 }); | 874 }); |
878 } | 875 } |
879 }, | 876 }, |
880 | 877 |
881 /** @override */ | 878 /** @override */ |
882 didShowPage: function() { | 879 didShowPage: function() { |
883 $('search-field').focus(); | 880 $('search-field').focus(); |
884 }, | 881 }, |
885 | 882 |
886 /** | 883 /** |
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2466 | 2463 |
2467 settings.hidden = !isVisible; | 2464 settings.hidden = !isVisible; |
2468 }; | 2465 }; |
2469 } | 2466 } |
2470 | 2467 |
2471 // Export | 2468 // Export |
2472 return { | 2469 return { |
2473 BrowserOptions: BrowserOptions | 2470 BrowserOptions: BrowserOptions |
2474 }; | 2471 }; |
2475 }); | 2472 }); |
OLD | NEW |