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

Side by Side Diff: ui/message_center/notification.cc

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 | « ui/message_center/notification.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "ui/message_center/notification.h" 5 #include "ui/message_center/notification.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/message_center/notification_delegate.h" 8 #include "ui/message_center/notification_delegate.h"
9 #include "ui/message_center/notification_types.h" 9 #include "ui/message_center/notification_types.h"
10 10
(...skipping 28 matching lines...) Expand all
39 timestamp(other.timestamp), 39 timestamp(other.timestamp),
40 context_message(other.context_message), 40 context_message(other.context_message),
41 image(other.image), 41 image(other.image),
42 small_image(other.small_image), 42 small_image(other.small_image),
43 items(other.items), 43 items(other.items),
44 progress(other.progress), 44 progress(other.progress),
45 buttons(other.buttons), 45 buttons(other.buttons),
46 should_make_spoken_feedback_for_popup_updates( 46 should_make_spoken_feedback_for_popup_updates(
47 other.should_make_spoken_feedback_for_popup_updates), 47 other.should_make_spoken_feedback_for_popup_updates),
48 clickable(other.clickable), 48 clickable(other.clickable),
49 vibration_pattern(other.vibration_pattern),
49 silent(other.silent) {} 50 silent(other.silent) {}
50 51
51 RichNotificationData::~RichNotificationData() {} 52 RichNotificationData::~RichNotificationData() {}
52 53
53 Notification::Notification(NotificationType type, 54 Notification::Notification(NotificationType type,
54 const std::string& id, 55 const std::string& id,
55 const base::string16& title, 56 const base::string16& title,
56 const base::string16& message, 57 const base::string16& message,
57 const gfx::Image& icon, 58 const gfx::Image& icon,
58 const base::string16& display_source, 59 const base::string16& display_source,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 icon, 161 icon,
161 base::string16() /* display_source */, 162 base::string16() /* display_source */,
162 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), 163 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id),
163 RichNotificationData(), 164 RichNotificationData(),
164 new HandleNotificationClickedDelegate(click_callback))); 165 new HandleNotificationClickedDelegate(click_callback)));
165 notification->SetSystemPriority(); 166 notification->SetSystemPriority();
166 return notification.Pass(); 167 return notification.Pass();
167 } 168 }
168 169
169 } // namespace message_center 170 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/notification.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698