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

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

Issue 2318463002: arc: Make ChromeVox read an ARC custom notification (Closed)
Patch Set: cleanup Created 4 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
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 20 matching lines...) Expand all
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 #if defined(OS_CHROMEOS) 37 #if defined(OS_CHROMEOS)
38 pinned(false), 38 pinned(false),
39 #endif // defined(OS_CHROMEOS) 39 #endif // defined(OS_CHROMEOS)
40 renotify(false), 40 renotify(false),
41 silent(false) {} 41 silent(false),
42 accessible_name() {}
yoshiki 2016/09/07 08:57:46 nit: you can remove this change completely. We don
yhanada 2016/09/07 09:08:03 Done.
42 43
43 RichNotificationData::RichNotificationData(const RichNotificationData& other) 44 RichNotificationData::RichNotificationData(const RichNotificationData& other)
44 : priority(other.priority), 45 : priority(other.priority),
45 never_timeout(other.never_timeout), 46 never_timeout(other.never_timeout),
46 timestamp(other.timestamp), 47 timestamp(other.timestamp),
47 context_message(other.context_message), 48 context_message(other.context_message),
48 image(other.image), 49 image(other.image),
49 small_image(other.small_image), 50 small_image(other.small_image),
50 items(other.items), 51 items(other.items),
51 progress(other.progress), 52 progress(other.progress),
52 buttons(other.buttons), 53 buttons(other.buttons),
53 should_make_spoken_feedback_for_popup_updates( 54 should_make_spoken_feedback_for_popup_updates(
54 other.should_make_spoken_feedback_for_popup_updates), 55 other.should_make_spoken_feedback_for_popup_updates),
55 clickable(other.clickable), 56 clickable(other.clickable),
56 #if defined(OS_CHROMEOS) 57 #if defined(OS_CHROMEOS)
57 pinned(other.pinned), 58 pinned(other.pinned),
58 #endif // defined(OS_CHROMEOS) 59 #endif // defined(OS_CHROMEOS)
59 vibration_pattern(other.vibration_pattern), 60 vibration_pattern(other.vibration_pattern),
60 renotify(other.renotify), 61 renotify(other.renotify),
61 silent(other.silent) {} 62 silent(other.silent),
63 accessible_name(other.accessible_name) {}
62 64
63 RichNotificationData::~RichNotificationData() {} 65 RichNotificationData::~RichNotificationData() {}
64 66
65 Notification::Notification(NotificationType type, 67 Notification::Notification(NotificationType type,
66 const std::string& id, 68 const std::string& id,
67 const base::string16& title, 69 const base::string16& title,
68 const base::string16& message, 70 const base::string16& message,
69 const gfx::Image& icon, 71 const gfx::Image& icon,
70 const base::string16& display_source, 72 const base::string16& display_source,
71 const GURL& origin_url, 73 const GURL& origin_url,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 NOTIFICATION_TYPE_SIMPLE, notification_id, title, message, icon, 178 NOTIFICATION_TYPE_SIMPLE, notification_id, title, message, icon,
177 base::string16() /* display_source */, GURL(), 179 base::string16() /* display_source */, GURL(),
178 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), 180 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id),
179 RichNotificationData(), 181 RichNotificationData(),
180 new HandleNotificationClickedDelegate(click_callback))); 182 new HandleNotificationClickedDelegate(click_callback)));
181 notification->SetSystemPriority(); 183 notification->SetSystemPriority();
182 return notification; 184 return notification;
183 } 185 }
184 186
185 } // namespace message_center 187 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698