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

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, 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
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 // Vibrate pettern for notification.
Avi (use Gerrit) 2015/04/21 17:28:47 typo: pattern
Peter Beverloo 2015/04/21 17:58:23 I'd prefer the following comment: // Vibration
Sanghyun Park 2015/04/23 11:08:27 Done.
Sanghyun Park 2015/04/23 11:08:27 Done.
55 std::vector<unsigned> vibrate;
Avi (use Gerrit) 2015/04/21 17:28:47 Use of unsigned ints is prohibited by the style gu
Peter Beverloo 2015/04/21 17:58:23 We clamp the individual vibration indices to [0, b
Sanghyun Park 2015/04/23 11:08:27 Thanks for letting me know . I didn't know about [
56
54 // Whether default notification indicators (sound, vibration, light) should 57 // Whether default notification indicators (sound, vibration, light) should
55 // be suppressed. 58 // be suppressed.
56 bool silent = false; 59 bool silent = false;
57 60
58 // Developer-provided data associated with the notification, in the form of 61 // Developer-provided data associated with the notification, in the form of
59 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. 62 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes.
60 std::vector<char> data; 63 std::vector<char> data;
61 }; 64 };
62 65
63 } // namespace content 66 } // namespace content
64 67
65 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ 68 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698