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

Side by Side Diff: chrome/browser/ntp_snippets/ntp_snippets_features.h

Issue 2831553003: List our features in ntp_snippets::kAllFeatures (Closed)
Patch Set: rebase Created 3 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_
6 #define CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_
7
8 #include "base/feature_list.h"
9
10 namespace params {
11 namespace ntp_snippets {
12
13 // Enables and configures notifications for content suggestions.
14 extern const base::Feature kNotificationsFeature;
15
16 // An integer. The priority of the notification, ranging from -2 (PRIORITY_MIN)
17 // to 2 (PRIORITY_MAX). Vibrates and makes sound if >= 0.
18 extern const char kNotificationsPriorityParam[];
19 constexpr int kNotificationsDefaultPriority = -1;
20
21 // "publisher": use article's publisher as notification's text (default).
22 // "snippet": use article's snippet as notification's text.
23 // "and_more": use "From $1. Read this article and $2 more." as text.
24 extern const char kNotificationsTextParam[];
25 extern const char kNotificationsTextValuePublisher[];
26 extern const char kNotificationsTextValueSnippet[];
27 extern const char kNotificationsTextValueAndMore[];
28
29 // "true": when Chrome becomes frontmost, leave notifications open.
30 // "false": automatically dismiss notification when Chrome becomes frontmost.
31 extern const char kNotificationsKeepWhenFrontmostParam[];
32
33 // "true": notifications link to chrome://newtab, with appropriate text.
34 // "false": notifications link to URL of notifying article.
35 extern const char kNotificationsOpenToNTPParam[];
36
37 // An integer. The maximum number of notifications that will be shown in 1 day.
38 extern const char kNotificationsDailyLimit[];
39 constexpr int kNotificationsDefaultDailyLimit = 1;
40
41 // An integer. The number of notifications that can be ignored. If the user
42 // ignores this many notifications or more, we stop sending them.
43 extern const char kNotificationsIgnoredLimitParam[];
44 constexpr int kNotificationsIgnoredDefaultLimit = 3;
45
46 } // namespace ntp_snippets
47 } // namespace params
48
49 #endif // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698