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

Side by Side Diff: components/ntp_snippets/features.h

Issue 2655263003: [NTP] Remove the ScrollView version of the NTP. (Closed)
Patch Set: Cleaned up some more. Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_NTP_SNIPPETS_FEATURES_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_FEATURES_H_
6 #define COMPONENTS_NTP_SNIPPETS_FEATURES_H_ 6 #define COMPONENTS_NTP_SNIPPETS_FEATURES_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 // Feature to allow the 'save to offline' option to appear in the snippets 28 // Feature to allow the 'save to offline' option to appear in the snippets
29 // context menu. 29 // context menu.
30 extern const base::Feature kSaveToOfflineFeature; 30 extern const base::Feature kSaveToOfflineFeature;
31 31
32 // Feature to allow offline badges to appear on snippets. 32 // Feature to allow offline badges to appear on snippets.
33 extern const base::Feature kOfflineBadgeFeature; 33 extern const base::Feature kOfflineBadgeFeature;
34 34
35 // Feature to allow dismissing sections. 35 // Feature to allow dismissing sections.
36 extern const base::Feature kSectionDismissalFeature; 36 extern const base::Feature kSectionDismissalFeature;
37 37
38 // Global toggle for the whole content suggestions feature. If this is set to 38 // Feature to allow specification of content suggestions source.
39 // false, all the per-provider features are ignored. 39 // TODO(peconn): Figure out how to remove this, it is useful to specify the
40 extern const base::Feature kContentSuggestionsFeature; 40 // source, but you shouldn't be able to disable it.
41 extern const base::Feature kContentSuggestionsSource;
41 42
42 // Feature to allow UI as specified here: https://crbug.com/660837. 43 // Feature to allow UI as specified here: https://crbug.com/660837.
43 extern const base::Feature kIncreasedVisibility; 44 extern const base::Feature kIncreasedVisibility;
44 45
45 // Feature to enable the Fetch More action 46 // Feature to enable the Fetch More action
46 extern const base::Feature kFetchMoreFeature; 47 extern const base::Feature kFetchMoreFeature;
47 48
48 // Feature to prefer AMP URLs over regular URLs when available. 49 // Feature to prefer AMP URLs over regular URLs when available.
49 extern const base::Feature kPreferAmpUrlsFeature; 50 extern const base::Feature kPreferAmpUrlsFeature;
50 51
(...skipping 15 matching lines...) Expand all
66 CategoryRankerChoice GetSelectedCategoryRanker(); 67 CategoryRankerChoice GetSelectedCategoryRanker();
67 68
68 // Builds a CategoryRanker according to kCategoryRanker feature. 69 // Builds a CategoryRanker according to kCategoryRanker feature.
69 std::unique_ptr<CategoryRanker> BuildSelectedCategoryRanker( 70 std::unique_ptr<CategoryRanker> BuildSelectedCategoryRanker(
70 PrefService* pref_service, 71 PrefService* pref_service,
71 std::unique_ptr<base::Clock> clock); 72 std::unique_ptr<base::Clock> clock);
72 73
73 } // namespace ntp_snippets 74 } // namespace ntp_snippets
74 75
75 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_ 76 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/snippets_internals_message_handler.cc ('k') | components/ntp_snippets/features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698