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

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

Issue 1313363006: Plumb requireInteraction to PlatformNotificationData & database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@constructor
Patch Set: Created 5 years, 3 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/platform_notification_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 GURL icon; 65 GURL icon;
66 66
67 // Vibration pattern for the notification, following the syntax of the 67 // Vibration pattern for the notification, following the syntax of the
68 // Vibration API. https://www.w3.org/TR/vibration/ 68 // Vibration API. https://www.w3.org/TR/vibration/
69 std::vector<int> vibration_pattern; 69 std::vector<int> vibration_pattern;
70 70
71 // Whether default notification indicators (sound, vibration, light) should 71 // Whether default notification indicators (sound, vibration, light) should
72 // be suppressed. 72 // be suppressed.
73 bool silent = false; 73 bool silent = false;
74 74
75 // Whether the notification should remain onscreen indefinitely, rather than
Peter Beverloo 2015/08/27 14:20:46 I'd prefer this description to be a little bit hig
76 // being auto-minimized to the notification center (if allowed by platform).
77 bool require_interaction = false;
78
75 // Developer-provided data associated with the notification, in the form of 79 // Developer-provided data associated with the notification, in the form of
76 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. 80 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes.
77 std::vector<char> data; 81 std::vector<char> data;
78 82
79 // Actions that should be shown as buttons on the notification. 83 // Actions that should be shown as buttons on the notification.
80 std::vector<PlatformNotificationAction> actions; 84 std::vector<PlatformNotificationAction> actions;
81 }; 85 };
82 86
83 } // namespace content 87 } // namespace content
84 88
85 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ 89 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
OLDNEW
« no previous file with comments | « content/common/platform_notification_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698