OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 24 matching lines...) Expand all Loading... |
35 // Sets up any experiment in which the NTP might want to participate. | 35 // Sets up any experiment in which the NTP might want to participate. |
36 // The CWS footer link is one such example. | 36 // The CWS footer link is one such example. |
37 static void SetupFieldTrials(); | 37 static void SetupFieldTrials(); |
38 | 38 |
39 // Returns whether or not to show the link to the CWS in the footer. | 39 // Returns whether or not to show the link to the CWS in the footer. |
40 static bool ShouldShowWebStoreFooterLink(); | 40 static bool ShouldShowWebStoreFooterLink(); |
41 | 41 |
42 // Returns whether or not to show the app install hint. | 42 // Returns whether or not to show the app install hint. |
43 static bool ShouldShowAppInstallHint(); | 43 static bool ShouldShowAppInstallHint(); |
44 | 44 |
| 45 // Returns whether or not to show the apps page. |
| 46 static bool ShouldShowAppsPage(); |
| 47 |
45 // Returns whether or not the "suggestions links page" is enabled. | 48 // Returns whether or not the "suggestions links page" is enabled. |
46 static bool IsSuggestionsPageEnabled(); | 49 static bool IsSuggestionsPageEnabled(); |
47 | 50 |
48 // Adds "url", "title", and "direction" keys on incoming dictionary, setting | 51 // Adds "url", "title", and "direction" keys on incoming dictionary, setting |
49 // title as the url as a fallback on empty title. | 52 // title as the url as a fallback on empty title. |
50 static void SetURLTitleAndDirection(base::DictionaryValue* dictionary, | 53 static void SetURLTitleAndDirection(base::DictionaryValue* dictionary, |
51 const string16& title, | 54 const string16& title, |
52 const GURL& gurl); | 55 const GURL& gurl); |
53 | 56 |
54 // Returns a pointer to a NewTabUI if the WebUIController object is a new tab | 57 // Returns a pointer to a NewTabUI if the WebUIController object is a new tab |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 bool showing_sync_bubble_; | 135 bool showing_sync_bubble_; |
133 | 136 |
134 PrefChangeRegistrar pref_change_registrar_; | 137 PrefChangeRegistrar pref_change_registrar_; |
135 | 138 |
136 DISALLOW_COPY_AND_ASSIGN(NewTabUI); | 139 DISALLOW_COPY_AND_ASSIGN(NewTabUI); |
137 }; | 140 }; |
138 | 141 |
139 extern const char kWebStoreLinkExperiment[]; | 142 extern const char kWebStoreLinkExperiment[]; |
140 | 143 |
141 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ | 144 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ |
OLD | NEW |