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

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

Issue 1141843004: NTP Zombie Code Slayer II: Suggestions Page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: and remove urls Created 5 years, 7 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
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/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // The purpose of this enum is to track which page on the NTP is showing. 67 // The purpose of this enum is to track which page on the NTP is showing.
68 // The lower 10 bits of kNtpShownPage are used for the index within the page 68 // The lower 10 bits of kNtpShownPage are used for the index within the page
69 // group, and the rest of the bits are used for the page group ID (defined 69 // group, and the rest of the bits are used for the page group ID (defined
70 // here). 70 // here).
71 static const int kPageIdOffset = 10; 71 static const int kPageIdOffset = 10;
72 enum { 72 enum {
73 INDEX_MASK = (1 << kPageIdOffset) - 1, 73 INDEX_MASK = (1 << kPageIdOffset) - 1,
74 MOST_VISITED_PAGE_ID = 1 << kPageIdOffset, 74 MOST_VISITED_PAGE_ID = 1 << kPageIdOffset,
75 APPS_PAGE_ID = 2 << kPageIdOffset, 75 APPS_PAGE_ID = 2 << kPageIdOffset,
76 BOOKMARKS_PAGE_ID = 3 << kPageIdOffset, 76 LAST_PAGE_ID = APPS_PAGE_ID,
77 SUGGESTIONS_PAGE_ID = 4 << kPageIdOffset,
78 LAST_PAGE_ID = SUGGESTIONS_PAGE_ID
79 }; 77 };
80 static const int kHistogramEnumerationMax = 78 static const int kHistogramEnumerationMax =
81 (LAST_PAGE_ID >> kPageIdOffset) + 1; 79 (LAST_PAGE_ID >> kPageIdOffset) + 1;
82 80
83 // Helper to send out promo resource change notification. 81 // Helper to send out promo resource change notification.
84 void Notify(chrome::NotificationType notification_type); 82 void Notify(chrome::NotificationType notification_type);
85 83
86 DISALLOW_COPY_AND_ASSIGN(NewTabPageHandler); 84 DISALLOW_COPY_AND_ASSIGN(NewTabPageHandler);
87 }; 85 };
88 86
89 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_ 87 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc ('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