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

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

Issue 8045012: NotificationPromo (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/webui/web_ui.h" 9 #include "content/browser/webui/web_ui.h"
10 10
11 class PrefService; 11 class PrefService;
12 class Profile; 12 class Profile;
13 13
14 // Handler for general New Tab Page functionality that does not belong in a 14 // Handler for general New Tab Page functionality that does not belong in a
15 // more specialized handler. 15 // more specialized handler.
16 class NewTabPageHandler : public WebUIMessageHandler { 16 class NewTabPageHandler : public WebUIMessageHandler {
17 public: 17 public:
18 NewTabPageHandler() {} 18 NewTabPageHandler() {}
19 virtual ~NewTabPageHandler() {} 19 virtual ~NewTabPageHandler() {}
20 20
21 // WebUIMessageHandler implementation. 21 // WebUIMessageHandler implementation.
22 virtual void RegisterMessages() OVERRIDE; 22 virtual void RegisterMessages() OVERRIDE;
23 23
24 // Callback for "closePromo". 24 // Callback for "closePromoNotification".
25 void HandleClosePromo(const ListValue* args); 25 void HandleClosePromoNotification(const ListValue* args);
26
27 // Callback for "promoNotificationViewed".
28 void HandlePromoNotificationViewed(const ListValue* args);
26 29
27 // Callback for "pageSelected". 30 // Callback for "pageSelected".
28 void HandlePageSelected(const ListValue* args); 31 void HandlePageSelected(const ListValue* args);
29 32
30 // Callback for "introMessageDismissed". This is called when the close button 33 // Callback for "introMessageDismissed". This is called when the close button
31 // on the ntp4 bubble is clicked or when a NavDot is clicked. 34 // on the ntp4 bubble is clicked or when a NavDot is clicked.
32 void HandleIntroMessageDismissed(const ListValue* args); 35 void HandleIntroMessageDismissed(const ListValue* args);
33 36
34 // Callback for "handleIntroMessageSeen". No arguments. Called when the intro 37 // Callback for "handleIntroMessageSeen". No arguments. Called when the intro
35 // message is displayed. 38 // message is displayed.
(...skipping 17 matching lines...) Expand all
53 INDEX_MASK = (1 << 10) - 1, 56 INDEX_MASK = (1 << 10) - 1,
54 MOST_VISITED_PAGE_ID = 1 << 10, 57 MOST_VISITED_PAGE_ID = 1 << 10,
55 APPS_PAGE_ID = 2 << 10, 58 APPS_PAGE_ID = 2 << 10,
56 BOOKMARKS_PAGE_ID = 3 << 10, 59 BOOKMARKS_PAGE_ID = 3 << 10,
57 }; 60 };
58 61
59 DISALLOW_COPY_AND_ASSIGN(NewTabPageHandler); 62 DISALLOW_COPY_AND_ASSIGN(NewTabPageHandler);
60 }; 63 };
61 64
62 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_ 65 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698