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

Side by Side Diff: content/public/common/platform_notification_data.h

Issue 1656243002: Implementation of renotify flag for Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TypeError for incorrect options and unit test Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
6 #define CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ 6 #define CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Vibration API. https://www.w3.org/TR/vibration/ 71 // Vibration API. https://www.w3.org/TR/vibration/
72 std::vector<int> vibration_pattern; 72 std::vector<int> vibration_pattern;
73 73
74 // The time at which the event the notification represents took place. 74 // The time at which the event the notification represents took place.
75 base::Time timestamp; 75 base::Time timestamp;
76 76
77 // Whether default notification indicators (sound, vibration, light) should 77 // Whether default notification indicators (sound, vibration, light) should
78 // be suppressed. 78 // be suppressed.
79 bool silent = false; 79 bool silent = false;
80 80
81 // Whether default notification indicators (sound, vibration, light) should
82 // be played again if the notification is replacing an older notification.
83 bool renotify = false;
84
81 // Whether the notification should remain onscreen indefinitely, rather than 85 // Whether the notification should remain onscreen indefinitely, rather than
82 // being auto-minimized to the notification center (if allowed by platform). 86 // being auto-minimized to the notification center (if allowed by platform).
83 bool require_interaction = false; 87 bool require_interaction = false;
84 88
85 // Developer-provided data associated with the notification, in the form of 89 // Developer-provided data associated with the notification, in the form of
86 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. 90 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes.
87 std::vector<char> data; 91 std::vector<char> data;
88 92
89 // Actions that should be shown as buttons on the notification. 93 // Actions that should be shown as buttons on the notification.
90 std::vector<PlatformNotificationAction> actions; 94 std::vector<PlatformNotificationAction> actions;
91 }; 95 };
92 96
93 } // namespace content 97 } // namespace content
94 98
95 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ 99 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698