Chromium Code Reviews| 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: string, |
| 23 * icon_big_exists: boolean, | |
| 24 * icon_small: string, | 23 * icon_small: string, |
| 25 * icon_small_exists: boolean, | 24 * icon_small_exists: boolean, |
|
Dan Beam
2016/12/16 01:01:23
did you mean to remove icon_small* out of curiosit
Evan Stade
2016/12/16 21:37:03
yes, I should do that. Done.
| |
| 26 * id: string, | 25 * id: string, |
| 27 * is_component: boolean, | 26 * is_component: boolean, |
| 28 * is_webstore: boolean, | 27 * is_webstore: boolean, |
| 29 * kioskEnabled: boolean, | 28 * kioskEnabled: boolean, |
| 30 * kioskMode: boolean, | 29 * kioskMode: boolean, |
| 31 * kioskOnly: boolean, | 30 * kioskOnly: boolean, |
| 32 * launch_container: number, | 31 * launch_container: number, |
| 33 * launch_type: number, | 32 * launch_type: number, |
| 34 * mayDisable: boolean, | 33 * mayDisable: boolean, |
| 35 * name: string, | 34 * name: string, |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 766 if (page.navigationDot) | 765 if (page.navigationDot) |
| 767 page.navigationDot.remove(opt_animate); | 766 page.navigationDot.remove(opt_animate); |
| 768 this.cardSlider.removeCard(page); | 767 this.cardSlider.removeCard(page); |
| 769 }, | 768 }, |
| 770 }; | 769 }; |
| 771 | 770 |
| 772 return { | 771 return { |
| 773 PageListView: PageListView | 772 PageListView: PageListView |
| 774 }; | 773 }; |
| 775 }); | 774 }); |
| OLD | NEW |