| 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 /** | 5 /** |
| 6 * @fileoverview PageListView implementation. | 6 * @fileoverview PageListView implementation. |
| 7 * PageListView manages page list, dot list, switcher buttons and handles apps | 7 * PageListView manages page list, dot list, switcher buttons and handles apps |
| 8 * pages callbacks from backend. | 8 * pages callbacks from backend. |
| 9 * | 9 * |
| 10 * Note that you need to have AppLauncherHandler in your WebUI to use this code. | 10 * Note that you need to have AppLauncherHandler in your WebUI to use this code. |
| 11 */ | 11 */ |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * @typedef {{app_launch_ordinal: string, | 14 * @typedef {{app_launch_ordinal: string, |
| 15 * description: string, | 15 * description: string, |
| 16 * detailsUrl: string, | 16 * detailsUrl: string, |
| 17 * direction: string, | 17 * direction: string, |
| 18 * enabled: boolean, | 18 * enabled: boolean, |
| 19 * full_name: string, | 19 * full_name: string, |
| 20 * full_name_direction: string, | 20 * full_name_direction: string, |
| 21 * homepageUrl: string, | 21 * homepageUrl: string, |
| 22 * icon_big: string, | 22 * icon_big: string, |
| 23 * icon_big_exists: boolean, | 23 * icon_big_exists: boolean, |
| 24 * icon_small: string, | 24 * icon_small: string, |
| 25 * icon_small_exists: boolean, | 25 * icon_small_exists: boolean, |
| 26 * id: string, | 26 * id: string, |
| 27 * is_component: boolean, | 27 * is_component: boolean, |
| 28 * is_webstore: boolean, | 28 * is_webstore: boolean, |
| 29 * kioskEnabled: boolean, | 29 * kioskEnabled: boolean, |
| 30 * kioskMode: boolean, |
| 30 * kioskOnly: boolean, | 31 * kioskOnly: boolean, |
| 31 * launch_container: number, | 32 * launch_container: number, |
| 32 * launch_type: number, | 33 * launch_type: number, |
| 33 * mayDisable: boolean, | 34 * mayDisable: boolean, |
| 34 * name: string, | 35 * name: string, |
| 35 * offlineEnabled: boolean, | 36 * offlineEnabled: boolean, |
| 36 * optionsUrl: string, | 37 * optionsUrl: string, |
| 37 * packagedApp: boolean, | 38 * packagedApp: boolean, |
| 38 * page_index: number, | 39 * page_index: number, |
| 39 * title: string, | 40 * title: string, |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 if (page.navigationDot) | 778 if (page.navigationDot) |
| 778 page.navigationDot.remove(opt_animate); | 779 page.navigationDot.remove(opt_animate); |
| 779 this.cardSlider.removeCard(page); | 780 this.cardSlider.removeCard(page); |
| 780 }, | 781 }, |
| 781 }; | 782 }; |
| 782 | 783 |
| 783 return { | 784 return { |
| 784 PageListView: PageListView | 785 PageListView: PageListView |
| 785 }; | 786 }; |
| 786 }); | 787 }); |
| OLD | NEW |