OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |