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

Side by Side Diff: chrome/browser/ui/webui/ntp/new_tab_ui.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_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 24 matching lines...) Expand all
35 public content::NotificationObserver { 35 public content::NotificationObserver {
36 public: 36 public:
37 explicit NewTabUI(content::WebUI* web_ui); 37 explicit NewTabUI(content::WebUI* web_ui);
38 ~NewTabUI() override; 38 ~NewTabUI() override;
39 39
40 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 40 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
41 41
42 // Returns whether or not to show apps pages. 42 // Returns whether or not to show apps pages.
43 static bool ShouldShowApps(); 43 static bool ShouldShowApps();
44 44
45 // Returns whether or not "Discovery" in the NTP is Enabled.
46 static bool IsDiscoveryInNTPEnabled();
47
48 // Adds "url", "title", and "direction" keys on incoming dictionary, setting 45 // Adds "url", "title", and "direction" keys on incoming dictionary, setting
49 // title as the url as a fallback on empty title. 46 // title as the url as a fallback on empty title.
50 static void SetUrlTitleAndDirection(base::DictionaryValue* dictionary, 47 static void SetUrlTitleAndDirection(base::DictionaryValue* dictionary,
51 const base::string16& title, 48 const base::string16& title,
52 const GURL& gurl); 49 const GURL& gurl);
53 50
54 // Adds "full_name" and "full_name_direction" keys on incoming dictionary. 51 // Adds "full_name" and "full_name_direction" keys on incoming dictionary.
55 static void SetFullNameAndDirection(const base::string16& full_name, 52 static void SetFullNameAndDirection(const base::string16& full_name,
56 base::DictionaryValue* dictionary); 53 base::DictionaryValue* dictionary);
57 54
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 135
139 // If the sync promo NTP bubble is being shown. 136 // If the sync promo NTP bubble is being shown.
140 bool showing_sync_bubble_; 137 bool showing_sync_bubble_;
141 138
142 PrefChangeRegistrar pref_change_registrar_; 139 PrefChangeRegistrar pref_change_registrar_;
143 140
144 DISALLOW_COPY_AND_ASSIGN(NewTabUI); 141 DISALLOW_COPY_AND_ASSIGN(NewTabUI);
145 }; 142 };
146 143
147 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 144 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_page_handler.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698