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

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

Issue 1054573002: Implement support for notification.vibrate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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') | ui/message_center/notification.h » ('j') | 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Contents of the notification. 44 // Contents of the notification.
45 base::string16 body; 45 base::string16 body;
46 46
47 // Tag of the notification. Notifications sharing both their origin and their 47 // Tag of the notification. Notifications sharing both their origin and their
48 // tag will replace the first displayed notification. 48 // tag will replace the first displayed notification.
49 std::string tag; 49 std::string tag;
50 50
51 // URL of the icon which is to be displayed with the notification. 51 // URL of the icon which is to be displayed with the notification.
52 GURL icon; 52 GURL icon;
53 53
54 // Vibration pattern for the notification, following the syntax of the
55 // Vibration API. https://www.w3.org/TR/vibration/
56 std::vector<int> vibration_pattern;
57
54 // Whether default notification indicators (sound, vibration, light) should 58 // Whether default notification indicators (sound, vibration, light) should
55 // be suppressed. 59 // be suppressed.
56 bool silent = false; 60 bool silent = false;
57 61
58 // Developer-provided data associated with the notification, in the form of 62 // Developer-provided data associated with the notification, in the form of
59 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. 63 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes.
60 std::vector<char> data; 64 std::vector<char> data;
61 }; 65 };
62 66
63 } // namespace content 67 } // namespace content
64 68
65 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ 69 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
OLDNEW
« no previous file with comments | « content/common/platform_notification_messages.h ('k') | ui/message_center/notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698