Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: chrome/browser/resources/settings/android_apps_page/android_apps_page.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @fileoverview 6 * @fileoverview
7 * 'android-apps-page' is the settings page for enabling android apps. 7 * 'android-apps-page' is the settings page for enabling android apps.
8 */ 8 */
9 9
10 Polymer({ 10 Polymer({
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 this.androidAppsInfo_ = info; 43 this.androidAppsInfo_ = info;
44 }, 44 },
45 45
46 /** 46 /**
47 * @param {Event} event 47 * @param {Event} event
48 * @private 48 * @private
49 */ 49 */
50 onManageAndroidAppsKeydown_: function(event) { 50 onManageAndroidAppsKeydown_: function(event) {
51 if (event.key != 'Enter' && event.key != ' ') 51 if (event.key != 'Enter' && event.key != ' ')
52 return; 52 return;
53 this.browserProxy_.showAndroidAppsSettings(true /** keyboardAction */); 53 this.browserProxy_.showAndroidAppsSettings(true /** keyboardAction */);
54 event.stopPropagation(); 54 event.stopPropagation();
55 }, 55 },
56 56
57 /** @private */ 57 /** @private */
58 onManageAndroidAppsTap_: function(event) { 58 onManageAndroidAppsTap_: function(event) {
59 this.browserProxy_.showAndroidAppsSettings(false /** keyboardAction */); 59 this.browserProxy_.showAndroidAppsSettings(false /** keyboardAction */);
60 }, 60 },
61 61
62 /** 62 /**
63 * @return {string} 63 * @return {string}
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 * Handles the shared proxy confirmation dialog 'Cancel' button or a cancel 96 * Handles the shared proxy confirmation dialog 'Cancel' button or a cancel
97 * event. 97 * event.
98 * @private 98 * @private
99 */ 99 */
100 onConfirmDisableDialogCancel_: function() { 100 onConfirmDisableDialogCancel_: function() {
101 /** @type {!SettingsCheckboxElement} */ (this.$.enabledCheckbox) 101 /** @type {!SettingsCheckboxElement} */ (this.$.enabledCheckbox)
102 .resetToPrefValue(); 102 .resetToPrefValue();
103 this.$.confirmDisableDialog.close(); 103 this.$.confirmDisableDialog.close();
104 }, 104 },
105 }); 105 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698