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

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

Issue 1656243002: Implementation of renotify flag for Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 16 matching lines...) Expand all
27 } 27 }
28 28
29 RichNotificationData::RichNotificationData() 29 RichNotificationData::RichNotificationData()
30 : priority(DEFAULT_PRIORITY), 30 : priority(DEFAULT_PRIORITY),
31 never_timeout(false), 31 never_timeout(false),
32 timestamp(base::Time::Now()), 32 timestamp(base::Time::Now()),
33 context_message(base::string16()), 33 context_message(base::string16()),
34 progress(0), 34 progress(0),
35 should_make_spoken_feedback_for_popup_updates(true), 35 should_make_spoken_feedback_for_popup_updates(true),
36 clickable(true), 36 clickable(true),
37 renotify(false),
37 silent(false) {} 38 silent(false) {}
38 39
39 RichNotificationData::RichNotificationData(const RichNotificationData& other) 40 RichNotificationData::RichNotificationData(const RichNotificationData& other)
40 : priority(other.priority), 41 : priority(other.priority),
41 never_timeout(other.never_timeout), 42 never_timeout(other.never_timeout),
42 timestamp(other.timestamp), 43 timestamp(other.timestamp),
43 context_message(other.context_message), 44 context_message(other.context_message),
44 image(other.image), 45 image(other.image),
45 small_image(other.small_image), 46 small_image(other.small_image),
46 items(other.items), 47 items(other.items),
47 progress(other.progress), 48 progress(other.progress),
48 buttons(other.buttons), 49 buttons(other.buttons),
49 should_make_spoken_feedback_for_popup_updates( 50 should_make_spoken_feedback_for_popup_updates(
50 other.should_make_spoken_feedback_for_popup_updates), 51 other.should_make_spoken_feedback_for_popup_updates),
51 clickable(other.clickable), 52 clickable(other.clickable),
52 vibration_pattern(other.vibration_pattern), 53 vibration_pattern(other.vibration_pattern),
54 renotify(other.renotify),
53 silent(other.silent) {} 55 silent(other.silent) {}
54 56
55 RichNotificationData::~RichNotificationData() {} 57 RichNotificationData::~RichNotificationData() {}
56 58
57 Notification::Notification(NotificationType type, 59 Notification::Notification(NotificationType type,
58 const std::string& id, 60 const std::string& id,
59 const base::string16& title, 61 const base::string16& title,
60 const base::string16& message, 62 const base::string16& message,
61 const gfx::Image& icon, 63 const gfx::Image& icon,
62 const base::string16& display_source, 64 const base::string16& display_source,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 NOTIFICATION_TYPE_SIMPLE, notification_id, title, message, icon, 174 NOTIFICATION_TYPE_SIMPLE, notification_id, title, message, icon,
173 base::string16() /* display_source */, GURL(), 175 base::string16() /* display_source */, GURL(),
174 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), 176 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id),
175 RichNotificationData(), 177 RichNotificationData(),
176 new HandleNotificationClickedDelegate(click_callback))); 178 new HandleNotificationClickedDelegate(click_callback)));
177 notification->SetSystemPriority(); 179 notification->SetSystemPriority();
178 return notification; 180 return notification;
179 } 181 }
180 182
181 } // namespace message_center 183 } // 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