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

Side by Side Diff: chrome/browser/ui/webui/ntp/new_tab_page_handler.h

Issue 11230014: Use UMA_HISTOGRAM_ENUMERATION instead of UMA_HISTOGRAM_BOOLEAN (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: set PROMO_VIEWED to 0 Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/common/chrome_notification_types.h" 9 #include "chrome/common/chrome_notification_types.h"
10 #include "content/public/browser/web_ui_message_handler.h" 10 #include "content/public/browser/web_ui_message_handler.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // WebUIMessageHandler implementation. 33 // WebUIMessageHandler implementation.
34 virtual void RegisterMessages() OVERRIDE; 34 virtual void RegisterMessages() OVERRIDE;
35 35
36 // Callback for "notificationPromoClosed". No arguments. 36 // Callback for "notificationPromoClosed". No arguments.
37 void HandleNotificationPromoClosed(const ListValue* args); 37 void HandleNotificationPromoClosed(const ListValue* args);
38 38
39 // Callback for "notificationPromoViewed". No arguments. 39 // Callback for "notificationPromoViewed". No arguments.
40 void HandleNotificationPromoViewed(const ListValue* args); 40 void HandleNotificationPromoViewed(const ListValue* args);
41 41
42 // Callback for "notificationPromoLinkClicked". No arguments.
43 void HandleNotificationPromoLinkClicked(const ListValue* args);
44
42 // Callback for "bubblePromoClosed". No arguments. 45 // Callback for "bubblePromoClosed". No arguments.
43 void HandleBubblePromoClosed(const ListValue* args); 46 void HandleBubblePromoClosed(const ListValue* args);
44 47
45 // Callback for "bubblePromoViewed". No arguments. 48 // Callback for "bubblePromoViewed". No arguments.
46 void HandleBubblePromoViewed(const ListValue* args); 49 void HandleBubblePromoViewed(const ListValue* args);
47 50
48 // Callback for "bubblePromoLinkClicked". No arguments. 51 // Callback for "bubblePromoLinkClicked". No arguments.
49 void HandleBubblePromoLinkClicked(const ListValue* args); 52 void HandleBubblePromoLinkClicked(const ListValue* args);
50 53
51 // Callback for "pageSelected". 54 // Callback for "pageSelected".
(...skipping 25 matching lines...) Expand all
77 static const int kHistogramEnumerationMax = 80 static const int kHistogramEnumerationMax =
78 (LAST_PAGE_ID >> kPageIdOffset) + 1; 81 (LAST_PAGE_ID >> kPageIdOffset) + 1;
79 82
80 // Helper to send out promo resource change notification. 83 // Helper to send out promo resource change notification.
81 void Notify(chrome::NotificationType notification_type); 84 void Notify(chrome::NotificationType notification_type);
82 85
83 DISALLOW_COPY_AND_ASSIGN(NewTabPageHandler); 86 DISALLOW_COPY_AND_ASSIGN(NewTabPageHandler);
84 }; 87 };
85 88
86 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_ 89 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.js ('k') | chrome/browser/ui/webui/ntp/new_tab_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698