/external/chromium_org/chrome/browser/ui/ash/multi_user/ |
D | multi_user_notification_blocker_chromeos_unittest.cc | 105 const message_center::NotifierId& notifier_id, in ShouldShowNotificationAsPopup() argument 107 message_center::NotifierId id_with_profile = notifier_id; in ShouldShowNotificationAsPopup() 113 const message_center::NotifierId& notifier_id, in ShouldShowNotification() argument 115 message_center::NotifierId id_with_profile = notifier_id; in ShouldShowNotification() 138 message_center::NotifierId notifier_id( in TEST_F() local 148 EXPECT_FALSE(ShouldShowNotificationAsPopup(notifier_id, "")); in TEST_F() 151 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id, GetDefaultUserId())); in TEST_F() 152 EXPECT_FALSE(ShouldShowNotification(notifier_id, "")); in TEST_F() 155 EXPECT_TRUE(ShouldShowNotification(notifier_id, GetDefaultUserId())); in TEST_F() 161 EXPECT_FALSE(ShouldShowNotificationAsPopup(notifier_id, "")); in TEST_F() [all …]
|
D | multi_user_notification_blocker_chromeos.cc | 23 const message_center::NotifierId& notifier_id) const { in ShouldShowNotification() 27 if (ash::system_notifier::IsAshSystemNotifier(notifier_id)) in ShouldShowNotification() 30 return notifier_id.profile_id == active_user_id_; in ShouldShowNotification() 34 const message_center::NotifierId& notifier_id) const { in ShouldShowNotificationAsPopup() 35 return ShouldShowNotification(notifier_id); in ShouldShowNotificationAsPopup()
|
D | multi_user_notification_blocker_chromeos.h | 29 const message_center::NotifierId& notifier_id) const OVERRIDE; 31 const message_center::NotifierId& notifier_id) const OVERRIDE;
|
/external/chromium_org/chrome/browser/notifications/ |
D | login_state_notification_blocker_chromeos_unittest.cc | 52 const message_center::NotifierId& notifier_id) { in ShouldShowNotificationAsPopup() argument 53 return blocker_->ShouldShowNotificationAsPopup(notifier_id); in ShouldShowNotificationAsPopup() 65 message_center::NotifierId notifier_id( in TEST_F() local 67 EXPECT_FALSE(ShouldShowNotificationAsPopup(notifier_id)); in TEST_F() 74 EXPECT_FALSE(ShouldShowNotificationAsPopup(notifier_id)); in TEST_F() 81 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); in TEST_F() 86 EXPECT_FALSE(ShouldShowNotificationAsPopup(notifier_id)); in TEST_F() 91 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); in TEST_F() 96 message_center::NotifierId notifier_id( in TEST_F() local 101 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); in TEST_F() [all …]
|
D | login_state_notification_blocker_chromeos_browsertest.cc | 65 const message_center::NotifierId& notifier_id) { in ShouldShowNotificationAsPopup() argument 66 return blocker_->ShouldShowNotificationAsPopup(notifier_id); in ShouldShowNotificationAsPopup() 86 message_center::NotifierId notifier_id( in IN_PROC_BROWSER_TEST_F() local 93 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); in IN_PROC_BROWSER_TEST_F() 99 EXPECT_FALSE(ShouldShowNotificationAsPopup(notifier_id)); in IN_PROC_BROWSER_TEST_F() 105 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); in IN_PROC_BROWSER_TEST_F() 120 message_center::NotifierId notifier_id( in IN_PROC_BROWSER_TEST_F() local 128 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); in IN_PROC_BROWSER_TEST_F() 134 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); in IN_PROC_BROWSER_TEST_F() 140 EXPECT_TRUE(ShouldShowNotificationAsPopup(notifier_id)); in IN_PROC_BROWSER_TEST_F()
|
D | desktop_notification_service.cc | 197 NotifierId notifier_id(NotifierId::APPLICATION, (*iter)->id()); in DisplayNameForOriginInProcessId() local 198 if (IsNotifierEnabled(notifier_id)) in DisplayNameForOriginInProcessId() 209 const NotifierId& notifier_id) { in IsNotifierEnabled() argument 210 switch (notifier_id.type) { in IsNotifierEnabled() 212 return disabled_extension_ids_.find(notifier_id.id) == in IsNotifierEnabled() 216 profile_, notifier_id.url) == CONTENT_SETTING_ALLOW; in IsNotifierEnabled() 219 return disabled_system_component_ids_.find(notifier_id.id) == in IsNotifierEnabled() 232 const NotifierId& notifier_id, in SetNotifierEnabled() argument 234 DCHECK_NE(NotifierId::WEB_PAGE, notifier_id.type); in SetNotifierEnabled() 239 switch (notifier_id.type) { in SetNotifierEnabled() [all …]
|
D | message_center_settings_controller.cc | 235 NotifierId notifier_id(NotifierId::APPLICATION, extension->id()); in GetNotifierList() local 237 notifier_id, in GetNotifierList() 239 notification_service->IsNotifierEnabled(notifier_id))); in GetNotifierList() 263 NotifierId notifier_id(url); in GetNotifierList() local 265 notifier_id, in GetNotifierList() 267 notification_service->IsNotifierEnabled(notifier_id))); in GetNotifierList() 313 if (notifier.notifier_id.type == NotifierId::WEB_PAGE) { in SetNotifierEnabled() 326 if (notifier.notifier_id.url.is_valid()) { in SetNotifierEnabled() 329 profile, notifier.notifier_id.url); in SetNotifierEnabled() 332 profile, notifier.notifier_id.url); in SetNotifierEnabled() [all …]
|
D | google_now_notification_stats_collector.cc | 58 ((notification->notifier_id().type == in IsNotificationIdForGoogleNow() 60 (notification->notifier_id().id == in IsNotificationIdForGoogleNow() 74 if ((*iter)->notifier_id().id == in CountVisibleGoogleNowNotifications()
|
D | desktop_notification_service.h | 104 bool IsNotifierEnabled(const message_center::NotifierId& notifier_id); 107 void SetNotifierEnabled(const message_center::NotifierId& notifier_id, 131 const message_center::NotifierId& notifier_id,
|
D | fullscreen_notification_blocker.cc | 68 const message_center::NotifierId& notifier_id) const { in ShouldShowNotificationAsPopup() 73 notifier_id); in ShouldShowNotificationAsPopup()
|
D | login_state_notification_blocker_chromeos.cc | 46 const message_center::NotifierId& notifier_id) const { in ShouldShowNotificationAsPopup() 47 if (ash::system_notifier::ShouldAlwaysShowPopups(notifier_id)) in ShouldShowNotificationAsPopup()
|
/external/chromium_org/ash/system/ |
D | system_notifier.cc | 47 bool MatchSystemNotifierId(const message_center::NotifierId& notifier_id, in MatchSystemNotifierId() argument 49 if (notifier_id.type != message_center::NotifierId::SYSTEM_COMPONENT) in MatchSystemNotifierId() 53 if (notifier_id.id == id_list[i]) in MatchSystemNotifierId() 77 bool ShouldAlwaysShowPopups(const message_center::NotifierId& notifier_id) { in ShouldAlwaysShowPopups() argument 78 return MatchSystemNotifierId(notifier_id, kAlwaysShownNotifierIds); in ShouldAlwaysShowPopups() 81 bool IsAshSystemNotifier(const message_center::NotifierId& notifier_id) { in IsAshSystemNotifier() argument 82 return MatchSystemNotifierId(notifier_id, kAshSystemNotifiers); in IsAshSystemNotifier()
|
D | system_notifier.h | 37 const message_center::NotifierId& notifier_id); 41 const message_center::NotifierId& notifier_id);
|
/external/chromium_org/ui/message_center/views/ |
D | notifier_settings_view_unittest.cc | 17 NotifierId notifier_id(NotifierId::APPLICATION, id); in NewNotifier() local 18 return new Notifier(notifier_id, base::UTF8ToUTF16(title), enabled); in NewNotifier() 33 virtual bool NotifierHasAdvancedSettings(const NotifierId& notifier_id) const in NotifierHasAdvancedSettings() 35 return notifier_id == settings_handler_id_; in NotifierHasAdvancedSettings() 39 const NotifierId& notifier_id, in OnNotifierAdvancedSettingsRequested() argument 42 last_notifier_id_settings_requested_.reset(new NotifierId(notifier_id)); in OnNotifierAdvancedSettingsRequested()
|
/external/chromium_org/ui/message_center/ |
D | notifier_settings.h | 86 Notifier(const NotifierId& notifier_id, 91 NotifierId notifier_id; member 136 virtual void UpdateIconImage(const NotifierId& notifier_id, 143 virtual void NotifierEnabledChanged(const NotifierId& notifier_id, 188 virtual bool NotifierHasAdvancedSettings(const NotifierId& notifier_id) 193 const NotifierId& notifier_id,
|
D | fake_notifier_settings_provider.cc | 83 const message_center::NotifierId& notifier_id) const { in NotifierHasAdvancedSettings() 86 return *notifier_id_with_settings_handler_ == notifier_id; in NotifierHasAdvancedSettings() 90 const NotifierId& notifier_id, in OnNotifierAdvancedSettingsRequested() argument 116 const NotifierId& notifier_id) { in SetNotifierHasAdvancedSettings() argument 117 notifier_id_with_settings_handler_.reset(new NotifierId(notifier_id)); in SetNotifierHasAdvancedSettings()
|
D | message_center_tray.cc | 30 const NotifierId& notifier_id, 50 const NotifierId& notifier_id, in NotificationMenuModel() argument 54 notifier_id_(notifier_id) { in NotificationMenuModel() 200 const NotifierId& notifier_id, in CreateNotificationMenuModel() argument 203 this, notifier_id, display_source)); in CreateNotificationMenuModel()
|
D | notifier_settings.cc | 53 Notifier::Notifier(const NotifierId& notifier_id, in Notifier() argument 56 : notifier_id(notifier_id), in Notifier()
|
D | fake_notifier_settings_provider.h | 34 virtual bool NotifierHasAdvancedSettings(const NotifierId& notifier_id) const 37 const NotifierId& notifier_id, 49 void SetNotifierHasAdvancedSettings(const NotifierId& notifier_id);
|
D | message_center_impl_unittest.cc | 65 const std::string& id, const std::string& notifier_id) { in CreateSimpleNotificationWithNotifierId() argument 68 notifier_id, in CreateSimpleNotificationWithNotifierId() 79 const std::string& notifier_id, in CreateNotificationWithNotifierId() argument 90 NotifierId(NotifierId::APPLICATION, notifier_id), in CreateNotificationWithNotifierId() 121 const message_center::NotifierId& notifier_id) const OVERRIDE { in ShouldShowNotificationAsPopup() 141 const NotifierId& notifier_id) const OVERRIDE { in ShouldShowNotificationAsPopup() 142 return (notifier_id == allowed_notifier_) || in ShouldShowNotificationAsPopup() 143 ToggledNotificationBlocker::ShouldShowNotificationAsPopup(notifier_id); in ShouldShowNotificationAsPopup() 161 const NotifierId& notifier_id) const OVERRIDE { in ShouldShowNotification() 162 return ShouldShowNotificationAsPopup(notifier_id); in ShouldShowNotification() [all …]
|
D | notification_list.cc | 26 if (!blockers[i]->ShouldShowNotificationAsPopup(notification.notifier_id())) in ShouldShowNotificationAsPopup() 106 new_notification->notifier_id().type == NotifierId::WEB_PAGE) { in UpdateNotificationMessage() 127 const NotifierId& notifier_id) { in GetNotificationsByNotifierId() argument 131 if ((*iter)->notifier_id() == notifier_id) in GetNotificationsByNotifierId() 286 if (!blockers[i]->ShouldShowNotification((*iter)->notifier_id())) { in GetVisibleNotifications()
|
D | notification_blocker.h | 36 virtual bool ShouldShowNotification(const NotifierId& notifier_id) const; 43 const NotifierId& notifier_id) const = 0;
|
/external/chromium_org/chrome/browser/extensions/api/notification_provider/ |
D | notification_provider_api.cc | 214 message_center::NotifierId notifier_id( in Run() local 216 params->notifier_id); in Run() 218 desktop_notification_service->SetNotifierEnabled(notifier_id, enabled); in Run() 249 message_center::NotifierId notifier_id( in Run() local 251 params->notifier_id); in Run() 254 settings_provider->NotifierHasAdvancedSettings(notifier_id); in Run() 256 settings_provider->OnNotifierAdvancedSettingsRequested(notifier_id, NULL); in Run()
|
/external/chromium_org/chrome/browser/extensions/api/notifications/ |
D | notifications_apitest.cc | 201 message_center::NotifierId notifier_id( in IN_PROC_BROWSER_TEST_F() local 204 message_center::Notifier notifier(notifier_id, base::string16(), true); in IN_PROC_BROWSER_TEST_F() 230 message_center::NotifierId notifier_id( in IN_PROC_BROWSER_TEST_F() local 233 message_center::Notifier notifier(notifier_id, base::string16(), true); in IN_PROC_BROWSER_TEST_F() 244 message_center::NotifierId notifier_id( in IN_PROC_BROWSER_TEST_F() local 247 message_center::Notifier notifier(notifier_id, base::string16(), false); in IN_PROC_BROWSER_TEST_F()
|
/external/chromium_org/chrome/browser/sync/ |
D | sync_error_notifier_ash.cc | 184 message_center::NotifierId notifier_id( in OnErrorChanged() local 189 notifier_id.profile_id = multi_user_util::GetUserIDFromProfile(profile_); in OnErrorChanged() 200 notifier_id, in OnErrorChanged()
|