Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Unified Diff: chrome/browser/resources/ntp4/new_tab.js

Issue 10182006: Adds the MostVisitedAction stat. This stat will provide a baseline to compare (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Sync'ed. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/ntp4/new_tab.js
===================================================================
--- chrome/browser/resources/ntp4/new_tab.js (revision 134118)
+++ chrome/browser/resources/ntp4/new_tab.js (working copy)
@@ -68,6 +68,16 @@
var DEFAULT_TRANSITION_TIME = 500;
/**
+ * See description for these values in ntp_stats.h.
+ * @enum {number}
+ */
+ var NtpFollowAction = {
+ CLICKED_TILE: 11,
+ CLICKED_OTHER_NTP_PANE: 12,
+ OTHER: 13
+ };
+
+ /**
* Creates a NewTabView object. NewTabView extends PageListView with
* new tab UI specific logics.
* @constructor
@@ -231,6 +241,7 @@
chrome.send('notificationPromoViewed');
}
+ cr.dispatchSimpleEvent(document, 'ntpLoaded', true, true);
document.documentElement.classList.remove('starting-up');
});
}
@@ -618,7 +629,8 @@
setStripeColor: setStripeColor,
showNotification: showNotification,
themeChanged: themeChanged,
- updateLogin: updateLogin
+ updateLogin: updateLogin,
+ NtpFollowAction: NtpFollowAction
Evan Stade 2012/04/26 21:13:05 alphabetical (case insensitive)
macourteau 2012/04/26 21:51:33 Done.
};
});

Powered by Google App Engine
This is Rietveld 408576698