 Chromium Code Reviews
 Chromium Code Reviews Issue 10182006:
  Adds the MostVisitedAction stat. This stat will provide a baseline to compare  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src/
    
  
    Issue 10182006:
  Adds the MostVisitedAction stat. This stat will provide a baseline to compare  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src/| 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.
 | 
| }; | 
| }); |