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

Side by Side Diff: ui/message_center/message_center_style.cc

Issue 1395483002: Increase Web Notification timeout to 20 seconds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use constant for delay Created 5 years, 2 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 #include "ui/message_center/message_center_style.h" 5 #include "ui/message_center/message_center_style.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 namespace message_center { 9 namespace message_center {
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 return scaled_size; 49 return scaled_size;
50 } 50 }
51 51
52 const size_t kNotificationMaximumItems = 5; 52 const size_t kNotificationMaximumItems = 5;
53 53
54 // Timing. 54 // Timing.
55 const int kAutocloseDefaultDelaySeconds = 8; 55 const int kAutocloseDefaultDelaySeconds = 8;
56 const int kAutocloseHighPriorityDelaySeconds = 25; 56 const int kAutocloseHighPriorityDelaySeconds = 25;
57 // Web notifications use a larger timeout for now, which improves re-engagement.
58 // TODO(johnme): Use Finch to experiment with different values for this, then
59 // consider replacing kAutocloseDefaultDelaySeconds with this.
60 const int kAutocloseWebNotificationDelaySeconds = 20;
57 61
58 // Colors. 62 // Colors.
59 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); 63 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1);
60 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); 64 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7);
61 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0); 65 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0);
62 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xee, 0xee, 0xee); 66 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xee, 0xee, 0xee);
63 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc); 67 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc);
64 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b); 68 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b);
65 69
66 } // namespace message_center 70 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698