Lines Matching refs:iter

75   for (Notifications::iterator iter = notifications_.begin();
76 iter != notifications_.end(); ++iter) {
77 Notification* notification = *iter;
95 Notifications::iterator iter = GetNotification(old_id);
96 if (iter == notifications_.end())
99 new_notification->CopyState(*iter);
104 if ((*iter)->priority() < new_notification->priority()) {
111 Notification* old = *iter;
112 notifications_.erase(iter);
127 for (Notifications::iterator iter = notifications_.begin();
128 iter != notifications_.end(); ++iter) {
129 if ((*iter)->notifier_id() == notifier_id)
130 notifications.insert(*iter);
137 Notifications::iterator iter = GetNotification(notification_id);
138 if (iter == notifications_.end())
140 (*iter)->set_icon(image);
146 Notifications::iterator iter = GetNotification(notification_id);
147 if (iter == notifications_.end())
149 (*iter)->set_image(image);
156 Notifications::iterator iter = GetNotification(notification_id);
157 if (iter == notifications_.end())
159 (*iter)->SetButtonIcon(button_index, image);
165 Notifications::iterator iter = GetNotification(id);
166 if (iter == notifications_.end())
169 return (*iter)->type() == type;
174 for (Notifications::iterator iter = notifications_.begin();
175 iter != notifications_.end(); ++iter) {
176 if ((*iter)->priority() < DEFAULT_PRIORITY)
178 if (!ShouldShowNotificationAsPopup(**iter, blockers))
180 if (!(*iter)->shown_as_popup())
193 for (Notifications::const_reverse_iterator iter = notifications_.rbegin();
194 iter != notifications_.rend(); iter++) {
195 if ((*iter)->shown_as_popup())
199 if ((*iter)->priority() < DEFAULT_PRIORITY)
202 if (!ShouldShowNotificationAsPopup(**iter, blockers)) {
204 blocked_ids->push_back((*iter)->id());
211 if ((*iter)->priority() == DEFAULT_PRIORITY &&
216 result.insert(*iter);
223 Notifications::iterator iter = GetNotification(id);
224 DCHECK(iter != notifications_.end());
226 if ((*iter)->shown_as_popup())
230 if ((*iter)->priority() != SYSTEM_PRIORITY || mark_notification_as_read)
231 (*iter)->set_shown_as_popup(true);
236 (*iter)->set_is_read(false);
240 Notifications::iterator iter = GetNotification(id);
241 if (iter == notifications_.end())
244 if ((*iter)->shown_as_popup())
247 if (!(*iter)->IsRead())
248 (*iter)->set_is_read(true);
253 Notifications::iterator iter = GetNotification(id);
254 if (iter == notifications_.end())
256 return (*iter)->delegate();
262 for (Notifications::iterator iter = notifications_.begin();
263 iter != notifications_.end();
264 ++iter) {
265 (*iter)->set_shown_as_popup(true);
271 Notifications::iterator iter = GetNotification(id);
272 if (iter != notifications_.end())
273 return *iter;
280 for (Notifications::const_iterator iter = notifications_.begin();
281 iter != notifications_.end(); ++iter) {
284 if (!blockers[i]->ShouldShowNotification((*iter)->notifier_id())) {
290 result.insert(*iter);
305 for (Notifications::const_iterator iter = notifications.begin();
306 iter != notifications.end(); ++iter) {
307 if (!(*iter)->IsRead())
315 for (Notifications::iterator iter = notifications_.begin();
316 iter != notifications_.end(); ++iter) {
317 if ((*iter)->id() == id)
318 return iter;
323 void NotificationList::EraseNotification(Notifications::iterator iter) {
324 delete *iter;
325 notifications_.erase(iter);
331 Notifications::iterator iter = GetNotification(notification->id());
333 if (iter != notifications_.end()) {
334 notification->CopyState(*iter);
336 EraseNotification(iter);