| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 chrome.send('addKioskApp', [e.target.value]); | 74 chrome.send('addKioskApp', [e.target.value]); |
| 75 e.target.value = ''; | 75 e.target.value = ''; |
| 76 } | 76 } |
| 77 }, | 77 }, |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * Handles the overlay being dismissed. | 80 * Handles the overlay being dismissed. |
| 81 * @private | 81 * @private |
| 82 */ | 82 */ |
| 83 handleDismiss_: function() { | 83 handleDismiss_: function() { |
| 84 ExtensionSettings.showOverlay(null); | 84 extensions.ExtensionSettings.showOverlay(null); |
| 85 } | 85 } |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 /** | 88 /** |
| 89 * Sets apps to be displayed in kiosk-app-list. | 89 * Sets apps to be displayed in kiosk-app-list. |
| 90 * @param {!Object.<{apps: !Array.<Object>, disableBailout: boolean}>} | 90 * @param {!Object.<{apps: !Array.<Object>, disableBailout: boolean}>} |
| 91 * settings An object containing an array of app info objects and | 91 * settings An object containing an array of app info objects and |
| 92 * disable bailout shortcut flag. | 92 * disable bailout shortcut flag. |
| 93 */ | 93 */ |
| 94 KioskAppsOverlay.setSettings = function(settings) { | 94 KioskAppsOverlay.setSettings = function(settings) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 // Export | 123 // Export |
| 124 return { | 124 return { |
| 125 KioskAppsOverlay: KioskAppsOverlay | 125 KioskAppsOverlay: KioskAppsOverlay |
| 126 }; | 126 }; |
| 127 }); | 127 }); |
| 128 | 128 |
| 129 <include src="kiosk_app_list.js"></include> | 129 <include src="kiosk_app_list.js"></include> |
| 130 <include src="kiosk_app_disable_bailout_confirm.js"></include> | 130 <include src="kiosk_app_disable_bailout_confirm.js"></include> |
| OLD | NEW |