Chromium Code Reviews| Index: ui/message_center/notification.h |
| diff --git a/ui/message_center/notification.h b/ui/message_center/notification.h |
| index 060cddaef49dcc1156658e010abe6caa60683c0c..2c2186dde1c35216b5fcd6498218b2e2fe2f9066 100644 |
| --- a/ui/message_center/notification.h |
| +++ b/ui/message_center/notification.h |
| @@ -50,6 +50,7 @@ class MESSAGE_CENTER_EXPORT RichNotificationData { |
| std::vector<ButtonInfo> buttons; |
| bool should_make_spoken_feedback_for_popup_updates; |
| bool clickable; |
| + std::vector<unsigned> vibrate; |
|
Avi (use Gerrit)
2015/04/21 17:28:47
ditto
Sanghyun Park
2015/04/23 11:08:27
Done.
|
| bool silent; |
| }; |
| @@ -104,6 +105,12 @@ class MESSAGE_CENTER_EXPORT Notification { |
| int priority() const { return optional_fields_.priority; } |
| void set_priority(int priority) { optional_fields_.priority = priority; } |
| + // This vibrate property currently has no effect on non-Android platforms. |
| + std::vector<unsigned> vibrate() const { return optional_fields_.vibrate; } |
|
Peter Beverloo
2015/04/21 17:58:23
const&
Sanghyun Park
2015/04/23 11:08:27
Done.
|
| + void set_vibrate(const std::vector<unsigned>& vibrate) { |
|
Peter Beverloo
2015/04/21 17:58:24
Have you given a thought about vibration on non-An
Sanghyun Park
2015/04/23 11:08:27
I just think that this will be used in future.
For
|
| + optional_fields_.vibrate = vibrate; |
| + } |
| + |
| // This property currently has no effect on non-Android platforms. |
| bool silent() const { return optional_fields_.silent; } |
| void set_silent(bool silent) { optional_fields_.silent = silent; } |