Lines Matching defs:listeners_
34 listeners_(new EventListenerMap(delegate_.get())),
68 scoped_ptr<EventListenerMap> listeners_;
74 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
78 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event));
83 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
85 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
91 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event));
96 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
98 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
103 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event));
108 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
111 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
117 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event));
122 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
125 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
129 listeners_->RemoveListenersForProcess(process_.get());
133 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event));
138 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
141 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
147 listeners_->RemoveListener(listener.get());
151 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event));
156 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
158 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
163 listeners_->RemoveListener(listener.get());
167 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event));
178 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
180 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener(
183 listeners_->RemoveLazyListenersForExtension(kExt1Id);
187 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event));
191 targets = listeners_->GetEventListeners(*event);
196 bool first_new = listeners_->AddListener(scoped_ptr<EventListener>(
199 bool second_new = listeners_->AddListener(scoped_ptr<EventListener>(
208 bool first_add = listeners_->AddListener(scoped_ptr<EventListener>(
211 bool second_add = listeners_->AddListener(scoped_ptr<EventListener>(
218 bool first_remove = listeners_->RemoveListener(listener.get());
219 bool second_remove = listeners_->RemoveListener(listener.get());
228 listeners_->AddListener(scoped_ptr<EventListener>(
231 listeners_->RemoveListenersForProcess(process_.get());
232 ASSERT_FALSE(listeners_->HasListenerForEvent(kEvent1Name));
236 ASSERT_FALSE(listeners_->HasListenerForEvent(kEvent1Name));
238 listeners_->AddListener(scoped_ptr<EventListener>(
242 ASSERT_FALSE(listeners_->HasListenerForEvent(kEvent2Name));
243 ASSERT_TRUE(listeners_->HasListenerForEvent(kEvent1Name));
244 listeners_->RemoveListenersForProcess(process_.get());
245 ASSERT_FALSE(listeners_->HasListenerForEvent(kEvent1Name));
249 ASSERT_FALSE(listeners_->HasListenerForExtension(kExt1Id, kEvent1Name));
252 listeners_->AddListener(scoped_ptr<EventListener>(
256 listeners_->AddListener(scoped_ptr<EventListener>(
260 ASSERT_FALSE(listeners_->HasListenerForExtension(kExt1Id, kEvent2Name));
261 ASSERT_TRUE(listeners_->HasListenerForExtension(kExt1Id, kEvent1Name));
262 ASSERT_FALSE(listeners_->HasListenerForExtension(kExt2Id, kEvent1Name));
263 listeners_->RemoveListenersForProcess(process_.get());
264 ASSERT_TRUE(listeners_->HasListenerForExtension(kExt1Id, kEvent1Name));
265 listeners_->RemoveLazyListenersForExtension(kExt1Id);
266 ASSERT_FALSE(listeners_->HasListenerForExtension(kExt1Id, kEvent1Name));
280 listeners_->LoadFilteredLazyListeners(kExt1Id, filtered_listeners);
284 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event));
298 listeners_->LoadFilteredLazyListeners(kExt1Id, filtered_listeners);
302 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event));