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('ntp', function() { | 5 cr.define('ntp', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 var APP_LAUNCH = { | 8 var APP_LAUNCH = { |
9 // The histogram buckets (keep in sync with extension_constants.h). | 9 // The histogram buckets (keep in sync with extension_constants.h). |
10 NTP_APPS_MAXIMIZED: 0, | 10 NTP_APPS_MAXIMIZED: 0, |
11 NTP_APPS_COLLAPSED: 1, | 11 NTP_APPS_COLLAPSED: 1, |
12 NTP_APPS_MENU: 2, | 12 NTP_APPS_MENU: 2, |
13 NTP_MOST_VISITED: 3, | 13 NTP_MOST_VISITED: 3, |
14 NTP_RECENTLY_CLOSED: 4, | |
15 NTP_APP_RE_ENABLE: 16, | 14 NTP_APP_RE_ENABLE: 16, |
16 NTP_WEBSTORE_FOOTER: 18, | 15 NTP_WEBSTORE_FOOTER: 18, |
17 NTP_WEBSTORE_PLUS_ICON: 19, | 16 NTP_WEBSTORE_PLUS_ICON: 19, |
18 }; | 17 }; |
19 | 18 |
20 // Histogram buckets for UMA tracking of where a DnD drop came from. | 19 // Histogram buckets for UMA tracking of where a DnD drop came from. |
21 var DRAG_SOURCE = { | 20 var DRAG_SOURCE = { |
22 SAME_APPS_PANE: 0, | 21 SAME_APPS_PANE: 0, |
23 OTHER_APPS_PANE: 1, | 22 OTHER_APPS_PANE: 1, |
24 MOST_VISITED_PANE: 2, | 23 MOST_VISITED_PANE: 2, |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 function launchAppAfterEnable(appId) { | 778 function launchAppAfterEnable(appId) { |
780 chrome.send('launchApp', [appId, APP_LAUNCH.NTP_APP_RE_ENABLE]); | 779 chrome.send('launchApp', [appId, APP_LAUNCH.NTP_APP_RE_ENABLE]); |
781 } | 780 } |
782 | 781 |
783 return { | 782 return { |
784 APP_LAUNCH: APP_LAUNCH, | 783 APP_LAUNCH: APP_LAUNCH, |
785 AppsPage: AppsPage, | 784 AppsPage: AppsPage, |
786 launchAppAfterEnable: launchAppAfterEnable, | 785 launchAppAfterEnable: launchAppAfterEnable, |
787 }; | 786 }; |
788 }); | 787 }); |
OLD | NEW |