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

Side by Side Diff: content/common/notification_constants.h

Issue 1901133002: Move the notification constants to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « content/common/OWNERS ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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 CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_
6 #define CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_
7
8 #include <stddef.h>
9
10 namespace content {
11
12 // Maximum number of actions on a Platform Notification.
13 static const size_t kPlatformNotificationMaxActions = 2;
14
15 // The maximum reasonable notification icon size, scaled from dip units to
16 // pixels using the largest supported scaling factor.
17 static const int kPlatformNotificationMaxIconSizePx = 320; // 80 dip * 4
18
19 // The maximum reasonable badge size, scaled from dip units to pixels using the
20 // largest supported scaling factor.
21 static const int kPlatformNotificationMaxBadgeSizePx = 96; // 24 dip * 4
22
23 // The maximum reasonable action icon size, scaled from dip units to
24 // pixels using the largest supported scaling factor.
25 static const int kPlatformNotificationMaxActionIconSizePx = 128; // 32 dip * 4
26
27 } // namespace content
28
29 #endif // CONTENT_COMMON_NOTIFICATION_CONSTANTS_H_
OLDNEW
« no previous file with comments | « content/common/OWNERS ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698