OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 App list UI. | 6 * @fileoverview App list UI. |
7 * For now, most of its logic is borrowed from ntp4. | 7 * For now, most of its logic is borrowed from ntp4. |
8 */ | 8 */ |
9 | 9 |
10 // Use an anonymous function to enable strict mode just for this file (which | 10 // Use an anonymous function to enable strict mode just for this file (which |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 function enterRearrangeMode() { | 43 function enterRearrangeMode() { |
44 appsView.enterRearrangeMode(); | 44 appsView.enterRearrangeMode(); |
45 } | 45 } |
46 | 46 |
47 function getAppsCallback(data) { | 47 function getAppsCallback(data) { |
48 appsView.getAppsCallback(data); | 48 appsView.getAppsCallback(data); |
49 } | 49 } |
50 | 50 |
51 function getAppsPageIndex(page) { | 51 function getAppsPageIndex(page) { |
52 appsView.getAppsPageIndex(page); | 52 return appsView.getAppsPageIndex(page); |
53 } | 53 } |
54 | 54 |
55 function getCardSlider() { | 55 function getCardSlider() { |
56 return appsView.cardSlider; | 56 return appsView.cardSlider; |
57 } | 57 } |
58 | 58 |
59 function leaveRearrangeMode(e) { | 59 function leaveRearrangeMode(e) { |
60 appsView.leaveRearrangeMode(e); | 60 appsView.leaveRearrangeMode(e); |
61 } | 61 } |
62 | 62 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 ntp4.appAdded = appList.appAdded; | 94 ntp4.appAdded = appList.appAdded; |
95 ntp4.appRemoved = appList.appRemoved; | 95 ntp4.appRemoved = appList.appRemoved; |
96 ntp4.enterRearrangeMode = appList.enterRearrangeMode; | 96 ntp4.enterRearrangeMode = appList.enterRearrangeMode; |
97 ntp4.getAppsPageIndex = appList.getAppsPageIndex; | 97 ntp4.getAppsPageIndex = appList.getAppsPageIndex; |
98 ntp4.getCardSlider = appList.getCardSlider; | 98 ntp4.getCardSlider = appList.getCardSlider; |
99 ntp4.leaveRearrangeMode = appList.leaveRearrangeMode; | 99 ntp4.leaveRearrangeMode = appList.leaveRearrangeMode; |
100 ntp4.saveAppPageName = appList.saveAppPageName; | 100 ntp4.saveAppPageName = appList.saveAppPageName; |
101 ntp4.setAppToBeHighlighted = appList.setAppToBeHighlighted; | 101 ntp4.setAppToBeHighlighted = appList.setAppToBeHighlighted; |
102 | 102 |
103 document.addEventListener('DOMContentLoaded', appList.load); | 103 document.addEventListener('DOMContentLoaded', appList.load); |
OLD | NEW |