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 cr.define('ntp4', function() { | 5 cr.define('ntp4', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 var localStrings = new LocalStrings; | 8 var localStrings = new LocalStrings; |
9 | 9 |
10 var APP_LAUNCH = { | 10 var APP_LAUNCH = { |
11 // The histogram buckets (keep in sync with extension_constants.h). | 11 // The histogram buckets (keep in sync with extension_constants.h). |
12 NTP_APPS_MAXIMIZED: 0, | 12 NTP_APPS_MAXIMIZED: 0, |
13 NTP_APPS_COLLAPSED: 1, | 13 NTP_APPS_COLLAPSED: 1, |
14 NTP_APPS_MENU: 2, | 14 NTP_APPS_MENU: 2, |
15 NTP_MOST_VISITED: 3, | 15 NTP_MOST_VISITED: 3, |
16 NTP_RECENTLY_CLOSED: 4, | 16 NTP_RECENTLY_CLOSED: 4, |
17 NTP_APP_RE_ENABLE: 16 | 17 NTP_APP_RE_ENABLE: 16, |
| 18 NTP_WEBSTORE_FOOTER: 18, |
18 }; | 19 }; |
19 | 20 |
20 // Histogram buckets for UMA tracking of where a DnD drop came from. | 21 // Histogram buckets for UMA tracking of where a DnD drop came from. |
21 var DRAG_SOURCE = { | 22 var DRAG_SOURCE = { |
22 SAME_APPS_PANE: 0, | 23 SAME_APPS_PANE: 0, |
23 OTHER_APPS_PANE: 1, | 24 OTHER_APPS_PANE: 1, |
24 MOST_VISITED_PANE: 2, | 25 MOST_VISITED_PANE: 2, |
25 BOOKMARKS_PANE: 3, | 26 BOOKMARKS_PANE: 3, |
26 OUTSIDE_NTP: 4 | 27 OUTSIDE_NTP: 4 |
27 }; | 28 }; |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 appNotificationChanged: appNotificationChanged, | 895 appNotificationChanged: appNotificationChanged, |
895 AppsPage: AppsPage, | 896 AppsPage: AppsPage, |
896 launchAppAfterEnable: launchAppAfterEnable, | 897 launchAppAfterEnable: launchAppAfterEnable, |
897 }; | 898 }; |
898 }); | 899 }); |
899 | 900 |
900 // TODO(estade): update the content handlers to use ntp namespace instead of | 901 // TODO(estade): update the content handlers to use ntp namespace instead of |
901 // making these global. | 902 // making these global. |
902 var appNotificationChanged = ntp4.appNotificationChanged; | 903 var appNotificationChanged = ntp4.appNotificationChanged; |
903 var launchAppAfterEnable = ntp4.launchAppAfterEnable; | 904 var launchAppAfterEnable = ntp4.launchAppAfterEnable; |
OLD | NEW |