| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.define('extensions', function() { | 5 cr.define('extensions', function() { |
| 6 /** | 6 /** |
| 7 * Encapsulated handling of ChromeOS kiosk apps options page. | 7 * Encapsulated handling of ChromeOS kiosk apps options page. |
| 8 * @constructor | 8 * @constructor |
| 9 */ | 9 */ |
| 10 function KioskAppsOverlay() { | 10 function KioskAppsOverlay() { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 errorBanner.classList.remove('visible'); | 64 errorBanner.classList.remove('visible'); |
| 65 this.clearErrorTimer_ = null; | 65 this.clearErrorTimer_ = null; |
| 66 }.bind(this), 5000); | 66 }.bind(this), 5000); |
| 67 }, | 67 }, |
| 68 | 68 |
| 69 /** | 69 /** |
| 70 * Handles keypressed event in the app id input element. | 70 * Handles keypressed event in the app id input element. |
| 71 * @private | 71 * @private |
| 72 */ | 72 */ |
| 73 handleAppIdInputKeyPressed_: function(e) { | 73 handleAppIdInputKeyPressed_: function(e) { |
| 74 if (e.keyIdentifier == 'Enter' && e.target.value) | 74 if (e.key == 'Enter' && e.target.value) |
| 75 this.handleAddButtonClick_(); | 75 this.handleAddButtonClick_(); |
| 76 }, | 76 }, |
| 77 | 77 |
| 78 /** | 78 /** |
| 79 * Handles click event on the add button. | 79 * Handles click event on the add button. |
| 80 * @private | 80 * @private |
| 81 */ | 81 */ |
| 82 handleAddButtonClick_: function() { | 82 handleAddButtonClick_: function() { |
| 83 var appId = $('kiosk-app-id-edit').value; | 83 var appId = $('kiosk-app-id-edit').value; |
| 84 if (!appId) | 84 if (!appId) |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 // Export | 140 // Export |
| 141 return { | 141 return { |
| 142 KioskAppsOverlay: KioskAppsOverlay | 142 KioskAppsOverlay: KioskAppsOverlay |
| 143 }; | 143 }; |
| 144 }); | 144 }); |
| 145 | 145 |
| 146 <include src="kiosk_app_list.js"> | 146 <include src="kiosk_app_list.js"> |
| 147 <include src="kiosk_app_disable_bailout_confirm.js"> | 147 <include src="kiosk_app_disable_bailout_confirm.js"> |
| OLD | NEW |