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

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

Issue 1292003004: Elide origins displayed on web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 10 matching lines...) Expand all
21 } 21 }
22 22
23 ButtonInfo::ButtonInfo(const base::string16& title) 23 ButtonInfo::ButtonInfo(const base::string16& title)
24 : title(title) { 24 : title(title) {
25 } 25 }
26 26
27 RichNotificationData::RichNotificationData() 27 RichNotificationData::RichNotificationData()
28 : priority(DEFAULT_PRIORITY), 28 : priority(DEFAULT_PRIORITY),
29 never_timeout(false), 29 never_timeout(false),
30 timestamp(base::Time::Now()), 30 timestamp(base::Time::Now()),
31 context_message("", false),
31 progress(0), 32 progress(0),
32 should_make_spoken_feedback_for_popup_updates(true), 33 should_make_spoken_feedback_for_popup_updates(true),
33 clickable(true), 34 clickable(true),
34 silent(false) {} 35 silent(false) {}
35 36
36 RichNotificationData::RichNotificationData(const RichNotificationData& other) 37 RichNotificationData::RichNotificationData(const RichNotificationData& other)
37 : priority(other.priority), 38 : priority(other.priority),
38 never_timeout(other.never_timeout), 39 never_timeout(other.never_timeout),
39 timestamp(other.timestamp), 40 timestamp(other.timestamp),
40 context_message(other.context_message), 41 context_message(other.context_message),
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 icon, 162 icon,
162 base::string16() /* display_source */, 163 base::string16() /* display_source */,
163 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), 164 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id),
164 RichNotificationData(), 165 RichNotificationData(),
165 new HandleNotificationClickedDelegate(click_callback))); 166 new HandleNotificationClickedDelegate(click_callback)));
166 notification->SetSystemPriority(); 167 notification->SetSystemPriority();
167 return notification.Pass(); 168 return notification.Pass();
168 } 169 }
169 170
170 } // namespace message_center 171 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698