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

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

Issue 23769003: Revert 220500 "Adds the contextMessage field to notifications." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
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 18 matching lines...) Expand all
29 never_timeout(false), 29 never_timeout(false),
30 timestamp(base::Time::Now()), 30 timestamp(base::Time::Now()),
31 progress(0), 31 progress(0),
32 should_make_spoken_feedback_for_popup_updates(true) {} 32 should_make_spoken_feedback_for_popup_updates(true) {}
33 33
34 RichNotificationData::RichNotificationData(const RichNotificationData& other) 34 RichNotificationData::RichNotificationData(const RichNotificationData& other)
35 : priority(other.priority), 35 : priority(other.priority),
36 never_timeout(other.never_timeout), 36 never_timeout(other.never_timeout),
37 timestamp(other.timestamp), 37 timestamp(other.timestamp),
38 expanded_message(other.expanded_message), 38 expanded_message(other.expanded_message),
39 context_message(other.context_message),
40 image(other.image), 39 image(other.image),
41 items(other.items), 40 items(other.items),
42 progress(other.progress), 41 progress(other.progress),
43 buttons(other.buttons), 42 buttons(other.buttons),
44 should_make_spoken_feedback_for_popup_updates( 43 should_make_spoken_feedback_for_popup_updates(
45 other.should_make_spoken_feedback_for_popup_updates) {} 44 other.should_make_spoken_feedback_for_popup_updates) {}
46 45
47 RichNotificationData::~RichNotificationData() {} 46 RichNotificationData::~RichNotificationData() {}
48 47
49 Notification::Notification(NotificationType type, 48 Notification::Notification(NotificationType type,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 icon, 140 icon,
142 base::string16() /* display_source */, 141 base::string16() /* display_source */,
143 NotifierId(system_component_id), 142 NotifierId(system_component_id),
144 RichNotificationData(), 143 RichNotificationData(),
145 new HandleNotificationClickedDelegate(click_callback))); 144 new HandleNotificationClickedDelegate(click_callback)));
146 notification->SetSystemPriority(); 145 notification->SetSystemPriority();
147 return notification.Pass(); 146 return notification.Pass();
148 } 147 }
149 148
150 } // namespace message_center 149 } // namespace message_center
OLDNEW
« no previous file with comments | « trunk/src/ui/message_center/notification.h ('k') | trunk/src/ui/message_center/views/notification_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698