| 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". No arguments.
|
| + void HandleNotificationPromoClosed(const ListValue* args);
|
|
|
| - // Callback for "notificationPromoViewed".
|
| + // Callback for "notificationPromoViewed". No arguments.
|
| void HandleNotificationPromoViewed(const ListValue* args);
|
|
|
| + // Callback for "bubblePromoClosed". No arguments.
|
| + void HandleBubblePromoClosed(const ListValue* args);
|
| +
|
| + // Callback for "bubblePromoViewed". No arguments.
|
| + 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_;
|
|
|
|
|