Home
last modified time | relevance | path

Searched refs:notification_id (Results 1 – 25 of 103) sorted by relevance

12345

/external/chromium_org/chrome/browser/notifications/
Dmessage_center_stats_collector.cc57 const std::string& notification_id) { in OnNotificationAdded() argument
58 stats_[notification_id] = NotificationStats(notification_id); in OnNotificationAdded()
60 StatsCollection::iterator iter = stats_.find(notification_id); in OnNotificationAdded()
63 stats_[notification_id].CollectAction(NOTIFICATION_ACTION_ADD); in OnNotificationAdded()
67 const std::string& notification_id, bool by_user) { in OnNotificationRemoved() argument
68 StatsCollection::iterator iter = stats_.find(notification_id); in OnNotificationRemoved()
76 stats_.erase(notification_id); in OnNotificationRemoved()
80 const std::string& notification_id) { in OnNotificationUpdated() argument
81 StatsCollection::iterator iter = stats_.find(notification_id); in OnNotificationUpdated()
90 const std::string& notification_id) { in OnNotificationClicked() argument
[all …]
Dmessage_center_stats_collector.h66 virtual void OnNotificationAdded(const std::string& notification_id) OVERRIDE;
67 virtual void OnNotificationRemoved(const std::string& notification_id,
70 const std::string& notification_id) OVERRIDE;
72 const std::string& notification_id) OVERRIDE;
73 virtual void OnNotificationButtonClicked(const std::string& notification_id,
76 const std::string& notification_id) OVERRIDE;
Ddesktop_notifications_unittest.cc53 new LoggingNotificationProxy(notification.notification_id())); in Add()
147 params.notification_id = 0; in StandardTestNotification()
159 params.notification_id = 1; in TEST_F()
168 params2.notification_id = 2; in TEST_F()
185 params.notification_id = 1; in TEST_F()
206 int notification_id = 1; in TEST_F() local
210 params.notification_id = notification_id; in TEST_F()
222 notification_id); in TEST_F()
241 params.notification_id = id; in TEST_F()
263 params.notification_id = 0; in TEST_F()
[all …]
Dballoon_collection_base.cc42 if ((*iter)->notification().notification_id() == id) { in FindById()
55 if ((*iter)->notification().notification_id() == id) in CloseById()
105 const std::string& notification_id) { in FindBalloonById() argument
108 if ((*iter)->notification().notification_id() == notification_id) { in FindBalloonById()
116 return FindBalloonById(notification.notification_id()); in FindBalloon()
Dmessage_center_notification_manager.cc126 old_notification->notification().notification_id(); in Update()
135 profile_notifications_[notification.notification_id()] = new_notification; in Update()
229 const std::string& notification_id, in OnNotificationRemoved() argument
232 profile_notifications_.find(notification_id); in OnNotificationRemoved()
250 const std::string& notification_id) { in OnNotificationUpdated() argument
298 notification.notification_id())); in StartDownloads()
307 notification.notification_id())); in StartDownloads()
316 notification.notification_id(), in StartDownloads()
324 notification.notification_id(), in StartDownloads()
454 std::string id = notification.notification_id(); in AddProfileNotification()
[all …]
Ddesktop_notification_service_win.cc16 int process_id, int route_id, int notification_id) { in CancelDesktopNotification() argument
18 new NotificationObjectProxy(process_id, route_id, notification_id, in CancelDesktopNotification()
44 notification.notification_id().c_str(), in ShowNotification()
Dnotification_ui_manager_mac.mm70 // The key in NSUserNotification.userInfo that stores the C++ notification_id.
71 NSString* const kNotificationIDKey = @"notification_id";
161 notification.notification_id())
166 notification.notification_id(),
188 notification_ids.insert(model->notification_id());
194 bool NotificationUIManagerMac::CancelById(const std::string& notification_id) {
195 NotificationMap::iterator it = notification_map_.find(notification_id);
197 return BalloonNotificationUIManager::CancelById(notification_id);
260 std::string notification_id = base::SysNSStringToUTF8(
263 NotificationMap::const_iterator it = notification_map_.find(notification_id);
[all …]
/external/chromium_org/chrome/browser/chromeos/file_manager/
Ddesktop_notifications.cc164 const std::string& notification_id, in NotificationMessage() argument
171 const base::string16 replace_id = UTF8ToUTF16(notification_id); in NotificationMessage()
175 new Delegate(host->AsWeakPtr(), notification_id), profile); in NotificationMessage()
303 std::string notification_id = GetNotificationId(type, path); in ShowNotificationWithMessage() local
304 hidden_notifications_.erase(notification_id); in ShowNotificationWithMessage()
305 ShowNotificationById(type, notification_id, message); in ShowNotificationWithMessage()
312 std::string notification_id = GetNotificationId(type, path); in ShowNotificationDelayed() local
313 hidden_notifications_.erase(notification_id); in ShowNotificationDelayed()
317 type, notification_id, GetMessage(type)), in ShowNotificationDelayed()
323 std::string notification_id = GetNotificationId(type, path); in HideNotification() local
[all …]
Ddesktop_notifications.h92 const std::string& notification_id,
94 void HideNotificationById(const std::string& notification_id);
95 void RemoveNotificationById(const std::string& notification_id);
/external/chromium_org/ui/message_center/
Dmessage_center_observer.h23 virtual void OnNotificationAdded(const std::string& notification_id) {} in OnNotificationAdded() argument
27 virtual void OnNotificationRemoved(const std::string& notification_id, in OnNotificationRemoved() argument
32 virtual void OnNotificationUpdated(const std::string& notification_id) {} in OnNotificationUpdated() argument
36 virtual void OnNotificationClicked(const std::string& notification_id) {} in OnNotificationClicked() argument
40 virtual void OnNotificationButtonClicked(const std::string& notification_id, in OnNotificationButtonClicked() argument
45 virtual void OnNotificationDisplayed(const std::string& notification_id) {} in OnNotificationDisplayed() argument
Dmessage_center_tray.h66 virtual void OnNotificationAdded(const std::string& notification_id) OVERRIDE;
67 virtual void OnNotificationRemoved(const std::string& notification_id,
70 const std::string& notification_id) OVERRIDE;
72 const std::string& notification_id) OVERRIDE;
74 const std::string& notification_id,
77 const std::string& notification_id) OVERRIDE;
Dmessage_center_tray.cc120 const std::string& notification_id) { in OnNotificationAdded() argument
125 const std::string& notification_id, in OnNotificationRemoved() argument
131 const std::string& notification_id) { in OnNotificationUpdated() argument
136 const std::string& notification_id) { in OnNotificationClicked() argument
142 const std::string& notification_id, in OnNotificationButtonClicked() argument
149 const std::string& notification_id) { in OnNotificationDisplayed() argument
/external/chromium_org/ui/message_center/views/
Dmessage_center_controller.h20 virtual void ClickOnNotification(const std::string& notification_id) = 0;
21 virtual void RemoveNotification(const std::string& notification_id,
26 virtual bool HasClickedListener(const std::string& notification_id) = 0;
27 virtual void ClickOnNotificationButton(const std::string& notification_id,
29 virtual void ExpandNotification(const std::string& notification_id) = 0;
Dmessage_popup_collection.h74 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE;
75 virtual void RemoveNotification(const std::string& notification_id,
80 virtual bool HasClickedListener(const std::string& notification_id) OVERRIDE;
81 virtual void ClickOnNotificationButton(const std::string& notification_id,
83 virtual void ExpandNotification(const std::string& notification_id) OVERRIDE;
165 virtual void OnNotificationAdded(const std::string& notification_id) OVERRIDE;
166 virtual void OnNotificationRemoved(const std::string& notification_id,
169 const std::string& notification_id) OVERRIDE;
171 ToastContentsView* FindToast(const std::string& notification_id) const;
Dmessage_center_view_unittest.cc98 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE;
99 virtual void RemoveNotification(const std::string& notification_id,
104 virtual bool HasClickedListener(const std::string& notification_id) OVERRIDE;
105 virtual void ClickOnNotificationButton(const std::string& notification_id,
107 virtual void ExpandNotification(const std::string& notification_id) OVERRIDE;
182 const std::string& notification_id) { in ClickOnNotification() argument
188 const std::string& notification_id, in RemoveNotification() argument
206 const std::string& notification_id) { in HasClickedListener() argument
211 const std::string& notification_id, in ClickOnNotificationButton() argument
218 const std::string& notification_id) { in ExpandNotification() argument
Dmessage_popup_collection.cc109 const std::string& notification_id) { in ClickOnNotification() argument
110 message_center_->ClickOnNotification(notification_id); in ClickOnNotification()
114 const std::string& notification_id, in RemoveNotification() argument
116 message_center_->RemoveNotification(notification_id, by_user); in RemoveNotification()
129 const std::string& notification_id) { in HasClickedListener() argument
130 return message_center_->HasClickedListener(notification_id); in HasClickedListener()
134 const std::string& notification_id, in ClickOnNotificationButton() argument
136 message_center_->ClickOnNotificationButton(notification_id, button_index); in ClickOnNotificationButton()
140 const std::string& notification_id) { in ExpandNotification() argument
141 message_center_->ExpandNotification(notification_id); in ExpandNotification()
[all …]
Dtoast_contents_view.cc49 const std::string& notification_id, in ToastContentsView() argument
52 id_(notification_id), in ToastContentsView()
291 const std::string& notification_id) { in ClickOnNotification() argument
293 collection_->ClickOnNotification(notification_id); in ClickOnNotification()
297 const std::string& notification_id, in RemoveNotification() argument
300 collection_->RemoveNotification(notification_id, by_user); in RemoveNotification()
315 const std::string& notification_id) { in HasClickedListener() argument
318 return collection_->HasClickedListener(notification_id); in HasClickedListener()
322 const std::string& notification_id, in ClickOnNotificationButton() argument
325 collection_->ClickOnNotificationButton(notification_id, button_index); in ClickOnNotificationButton()
[all …]
Dtoast_contents_view.h44 ToastContentsView(const std::string& notification_id,
79 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE;
80 virtual void RemoveNotification(const std::string& notification_id,
85 virtual bool HasClickedListener(const std::string& notification_id) OVERRIDE;
86 virtual void ClickOnNotificationButton(const std::string& notification_id,
88 virtual void ExpandNotification(const std::string& notification_id) OVERRIDE;
Dmessage_view.h28 virtual void ClickOnNotification(const std::string& notification_id) = 0;
29 virtual void RemoveNotification(const std::string& notification_id,
49 const std::string& notification_id,
82 std::string notification_id() { return notification_id_; } in notification_id() function
Dmessage_center_view.h82 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE;
83 virtual void RemoveNotification(const std::string& notification_id,
88 virtual bool HasClickedListener(const std::string& notification_id) OVERRIDE;
89 virtual void ClickOnNotificationButton(const std::string& notification_id,
91 virtual void ExpandNotification(const std::string& notification_id) OVERRIDE;
/external/chromium_org/chrome/browser/extensions/api/notifications/
Dnotifications_apitest.cc49 std::string notification_id; in IN_PROC_BROWSER_TEST_F() local
72 ASSERT_TRUE(result->GetAsString(&notification_id)); in IN_PROC_BROWSER_TEST_F()
73 ASSERT_TRUE(notification_id.length() > 0); in IN_PROC_BROWSER_TEST_F()
87 "[\"" + notification_id + in IN_PROC_BROWSER_TEST_F()
169 "[\"" + notification_id + "\"]", in IN_PROC_BROWSER_TEST_F()
203 std::string notification_id; in IN_PROC_BROWSER_TEST_F() local
205 ASSERT_TRUE(result->GetAsString(&notification_id)); in IN_PROC_BROWSER_TEST_F()
206 ASSERT_TRUE(notification_id.length() > 0); in IN_PROC_BROWSER_TEST_F()
242 std::string notification_id; in IN_PROC_BROWSER_TEST_F() local
244 ASSERT_TRUE(result->GetAsString(&notification_id)); in IN_PROC_BROWSER_TEST_F()
[all …]
Dnotifications_api.cc503 std::string notification_id; in RunNotificationsApi() local
504 if (!params_->notification_id.empty()) { in RunNotificationsApi()
506 notification_id = params_->notification_id; in RunNotificationsApi()
510 notification_id = base::GenerateGUID(); in RunNotificationsApi()
511 if (notification_id.empty()) in RunNotificationsApi()
512 notification_id = base::RandBytesAsString(16); in RunNotificationsApi()
515 SetResult(new base::StringValue(notification_id)); in RunNotificationsApi()
518 if (!CreateNotification(notification_id, &params_->options)) in RunNotificationsApi()
540 CreateScopedIdentifier(extension_->id(), params_->notification_id)); in RunNotificationsApi()
555 params_->notification_id, &params_->options, &notification); in RunNotificationsApi()
[all …]
/external/chromium/chrome/browser/notifications/
Ddesktop_notifications_unittest.cc34 new LoggingNotificationProxy(notification.notification_id())); in Add()
104 params.notification_id = 0; in StandardTestNotification()
116 params.notification_id = 1; in TEST_F()
127 params2.notification_id = 2; in TEST_F()
141 params.notification_id = 1; in TEST_F()
162 int notification_id = 1; in TEST_F() local
165 params.notification_id = notification_id; in TEST_F()
177 notification_id); in TEST_F()
195 params.notification_id = id; in TEST_F()
218 params.notification_id = 0; in TEST_F()
[all …]
Dballoon_collection_base.cc41 if ((*iter)->notification().notification_id() == id) in CloseById()
79 if ((*iter)->notification().notification_id() == in FindBalloon()
80 notification.notification_id()) { in FindBalloon()
/external/chromium/chrome/browser/chromeos/notifications/
Ddesktop_notifications_unittest.cc43 new LoggingNotificationProxy(notification.notification_id())); in Add()
99 params.notification_id = 0; in StandardTestNotification()
111 params.notification_id = 1; in TEST_F()
122 params2.notification_id = 2; in TEST_F()
136 params.notification_id = 1; in TEST_F()
162 int notification_id = 1; in TEST_F() local
165 params.notification_id = notification_id; in TEST_F()
177 notification_id); in TEST_F()
196 params.notification_id = id; in TEST_F()
259 params.notification_id = 1; in TEST_F()

12345