Chromium Code Reviews| Index: chrome/browser/ui/webui/ntp/new_tab_page_handler.h |
| =================================================================== |
| --- chrome/browser/ui/webui/ntp/new_tab_page_handler.h (revision 155564) |
| +++ chrome/browser/ui/webui/ntp/new_tab_page_handler.h (working copy) |
| @@ -17,30 +17,37 @@ |
| class NewTabPageHandler : public content::WebUIMessageHandler { |
| public: |
| NewTabPageHandler(); |
| + |
| + // Register NTP per-profile preferences. |
| + static void RegisterUserPrefs(PrefService* prefs); |
| + |
| + // Register NTP profile-independent preferences. |
| + static void RegisterPrefs(PrefService* prefs); |
| + |
| + // Registers values (strings etc.) for the page. |
| + static void GetLocalizedValues(Profile* profile, DictionaryValue* values); |
| + |
| + private: |
| virtual ~NewTabPageHandler(); |
| // WebUIMessageHandler implementation. |
| virtual void RegisterMessages() OVERRIDE; |
| - // Callback for "closeNotificationPromo". |
| - void HandleCloseNotificationPromo(const ListValue* args); |
| + // Callback for "notificationPromoClosed". |
|
Dan Beam
2012/09/11 03:44:57
can you put No arguments. on the callbacks that do
achuithb
2012/09/11 20:27:05
Done.
|
| + void HandleNotificationPromoClosed(const ListValue* args); |
| // Callback for "notificationPromoViewed". |
| void HandleNotificationPromoViewed(const ListValue* args); |
| + // Callback for "bubblePromoClosed". |
| + void HandleBubblePromoClosed(const ListValue* args); |
| + |
| + // Callback for "bubblePromoViewed". |
| + void HandleBubblePromoViewed(const ListValue* args); |
| + |
| // Callback for "pageSelected". |
| void HandlePageSelected(const ListValue* args); |
| - // Register NTP per-profile preferences. |
| - static void RegisterUserPrefs(PrefService* prefs); |
| - |
| - // Register NTP profile-independent preferences. |
| - static void RegisterPrefs(PrefService* prefs); |
| - |
| - // Registers values (strings etc.) for the page. |
| - static void GetLocalizedValues(Profile* profile, DictionaryValue* values); |
| - |
| - private: |
| // Tracks the number of times the user has switches pages (for UMA). |
| size_t page_switch_count_; |