/external/chromium_org/extensions/browser/ |
D | event_listener_map_unittest.cc | 34 listeners_(new EventListenerMap(delegate_.get())), in EventListenerMapUnittest() 68 scoped_ptr<EventListenerMap> listeners_; member in extensions::__anon09f114780111::EventListenerMapUnittest 74 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener( in TEST_F() 78 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event)); in TEST_F() 83 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener( in TEST_F() 85 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener( in TEST_F() 91 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event)); in TEST_F() 96 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener( in TEST_F() 98 listeners_->AddListener(scoped_ptr<EventListener>(new EventListener( in TEST_F() 103 std::set<const EventListener*> targets(listeners_->GetEventListeners(*event)); in TEST_F() [all …]
|
D | event_listener_map.cc | 79 listeners_[listener_ptr->event_name()].push_back(listener_ptr); in AddListener() 93 ListenerList& listeners = listeners_[listener->event_name()]; in RemoveListener() 109 ListenerMap::iterator it = listeners_.find(event_name); in HasListenerForEvent() 110 return it != listeners_.end() && !it->second.empty(); in HasListenerForEvent() 116 ListenerMap::iterator it = listeners_.find(event_name); in HasListenerForExtension() 117 if (it == listeners_.end()) in HasListenerForExtension() 129 ListenerMap::iterator it = listeners_.find(listener->event_name()); in HasListener() 130 if (it == listeners_.end()) in HasListener() 143 for (ListenerMap::iterator it = listeners_.begin(); it != listeners_.end(); in HasProcessListener() 157 for (ListenerMap::iterator it = listeners_.begin(); it != listeners_.end(); in RemoveLazyListenersForExtension() [all …]
|
D | event_router.cc | 171 listeners_(this) { in EventRouter() 190 listeners_.AddListener(scoped_ptr<EventListener>(new EventListener( in AddEventListener() 199 listeners_.RemoveListener(&listener); in RemoveEventListener() 244 bool is_new = listeners_.AddListener(listener.Pass()); in AddLazyEventListener() 258 bool did_exist = listeners_.RemoveListener(&listener); in RemoveLazyEventListener() 273 listeners_.AddListener(scoped_ptr<EventListener>(new EventListener( in AddFilteredEventListener() 278 bool added = listeners_.AddListener(scoped_ptr<EventListener>( in AddFilteredEventListener() 296 listeners_.RemoveListener(&listener); in RemoveFilteredEventListener() 300 bool removed = listeners_.RemoveListener(&listener); in RemoveFilteredEventListener() 308 return listeners_.HasListenerForEvent(event_name); in HasEventListener() [all …]
|
D | event_listener_map.h | 118 return listeners_[event_name]; in GetEventListenersByName() 170 ListenerMap listeners_; variable
|
/external/chromium_org/ui/webui/resources/js/cr/ |
D | event_target.js | 29 if (!this.listeners_) 30 this.listeners_ = Object.create(null); 31 if (!(type in this.listeners_)) { 32 this.listeners_[type] = [handler]; property 34 var handlers = this.listeners_[type]; 47 if (!this.listeners_) 49 if (type in this.listeners_) { 50 var handlers = this.listeners_[type]; 55 delete this.listeners_[type]; 70 if (!this.listeners_) [all …]
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr/ |
D | event_target.js | 29 if (!this.listeners_) 30 this.listeners_ = Object.create(null); 31 if (!(type in this.listeners_)) { 32 this.listeners_[type] = [handler]; property 34 var handlers = this.listeners_[type]; 47 if (!this.listeners_) 49 if (type in this.listeners_) { 50 var handlers = this.listeners_[type]; 55 delete this.listeners_[type]; 70 if (!this.listeners_) [all …]
|
/external/chromium-trace/trace-viewer/src/base/ |
D | event_target.js | 30 if (!this.listeners_) 31 this.listeners_ = Object.create(null); 32 if (!(type in this.listeners_)) { 33 this.listeners_[type] = [handler]; property 35 var handlers = this.listeners_[type]; 48 if (!this.listeners_) 50 if (type in this.listeners_) { 51 var handlers = this.listeners_[type]; 56 delete this.listeners_[type]; 71 if (!this.listeners_) [all …]
|
/external/chromium_org/native_client_sdk/src/gonacl_appengine/static/bullet/ |
D | NaClAM.js | 21 this.listeners_ = Object.create(null); 171 if (!this.listeners_) { 172 this.listeners_ = Object.create(null); 174 if (!(type in this.listeners_)) { 175 this.listeners_[type] = [handler]; property 177 var handlers = this.listeners_[type]; 190 if (!this.listeners_) { 194 if (type in this.listeners_) { 195 var handlers = this.listeners_[type]; 200 delete this.listeners_[type]; [all …]
|
/external/chromium_org/ui/webui/resources/js/ |
D | event_tracker.js | 30 this.listeners_ = []; property in EventTracker.EventTracker 57 this.listeners_.push(h); 67 this.listeners_ = this.listeners_.filter(function(h) { 80 this.listeners_.forEach(EventTracker.removeEventListener_); 81 this.listeners_ = []; property
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
D | event_emitter.cc | 36 assert(listeners_.count(listener) == 0); in RegisterListener_Locked() 37 listeners_[listener] = events; in RegisterListener_Locked() 41 assert(listeners_.count(listener) == 1); in UnregisterListener_Locked() 42 listeners_.erase(listener); in UnregisterListener_Locked() 53 for (it = listeners_.begin(); it != listeners_.end(); it++) { in RaiseEvents_Locked()
|
/external/chromium_org/chrome/browser/resources/signin_internals/ |
D | signin_internals.js | 56 this.listeners_ = []; property in anonymousFunctionc109d4410100.Event 61 this.listeners_.push(listener); 70 this.listeners_.splice(i, 1); 81 return this.listeners_.length > 0; 86 for (var i = 0; i < this.listeners_.length; i++) { 87 if (this.listeners_[i] == listener) { 98 for (var i = 0; i < this.listeners_.length; i++) { 100 this.listeners_[i].apply(null, args);
|
/external/chromium_org/tools/android/forwarder2/ |
D | device_controller.cc | 84 const ListenersMap::iterator listener_it = listeners_.find(port); in AcceptHostCommandInternal() 85 DeviceListener* const listener = listener_it == listeners_.end() in AcceptHostCommandInternal() 92 DeleteRefCountedValueInMapFromIterator(listener_it, &listeners_); in AcceptHostCommandInternal() 106 listeners_.insert( in AcceptHostCommandInternal() 130 DeleteRefCountedValueInMapFromIterator(listener_it, &listeners_); in AcceptHostCommandInternal() 153 listener->listener_port(), &controller->listeners_); in DeleteListenerOnError()
|
/external/chromium_org/content/common/gpu/client/ |
D | gpu_channel_host.cc | 343 DCHECK(listeners_.find(route_id) == listeners_.end()); in AddRoute() 347 listeners_[route_id] = info; in AddRoute() 351 ListenerMap::iterator it = listeners_.find(route_id); in RemoveRoute() 352 if (it != listeners_.end()) in RemoveRoute() 353 listeners_.erase(it); in RemoveRoute() 362 ListenerMap::iterator it = listeners_.find(message.routing_id()); in OnMessageReceived() 363 if (it == listeners_.end()) in OnMessageReceived() 387 for (ListenerMap::iterator it = listeners_.begin(); in OnChannelError() 388 it != listeners_.end(); in OnChannelError() 396 listeners_.clear(); in OnChannelError()
|
/external/chromium_org/remoting/jingle_glue/ |
D | fake_signal_strategy.cc | 43 FOR_EACH_OBSERVER(Listener, listeners_, in Connect() 49 FOR_EACH_OBSERVER(Listener, listeners_, in Disconnect() 68 listeners_.AddObserver(listener); in AddListener() 73 listeners_.RemoveObserver(listener); in RemoveListener() 114 ObserverListBase<Listener>::Iterator it(listeners_); in DeliverIncomingMessages()
|
D | xmpp_signal_strategy.cc | 134 listeners_.AddObserver(listener); in AddListener() 139 listeners_.RemoveObserver(listener); in RemoveListener() 166 ObserverListBase<Listener>::Iterator it(listeners_); in HandleStanza() 229 FOR_EACH_OBSERVER(Listener, listeners_, in SetState()
|
/external/chromium_org/ui/gfx/ |
D | sys_color_change_listener.cc | 70 ObserverList<SysColorChangeListener> listeners_; member in gfx::SysColorChangeObserver 87 listeners_.AddObserver(listener); in AddListener() 91 listeners_.RemoveObserver(listener); in RemoveListener() 101 FOR_EACH_OBSERVER(SysColorChangeListener, listeners_, OnSysColorChange()); in OnWndProc()
|
/external/chromium_org/remoting/client/plugin/ |
D | delegating_signal_strategy.cc | 30 ObserverListBase<Listener>::Iterator it(listeners_); in OnIncomingMessage() 57 listeners_.AddObserver(listener); in AddListener() 61 listeners_.RemoveObserver(listener); in RemoveListener()
|
/external/chromium_org/content/public/test/ |
D | mock_render_process_host.cc | 65 listeners_.AddWithID(listener, routing_id); in AddRoute() 69 DCHECK(listeners_.Lookup(routing_id) != NULL); in RemoveRoute() 70 listeners_.Remove(routing_id); in RemoveRoute() 158 if (listeners_.IsEmpty()) { in Cleanup() 254 IPC::Listener* listener = listeners_.Lookup(msg.routing_id()); in OnMessageReceived()
|
/external/chromium_org/sync/test/sessions/ |
D | test_scoped_session_event_listener.h | 21 context->listeners_.AddObserver(listener); in TestScopedSessionEventListener() 24 context_->listeners_.RemoveObserver(listener_); in ~TestScopedSessionEventListener()
|
/external/chromium_org/net/dns/ |
D | mdns_client_impl.cc | 178 STLDeleteValues(&listeners_); in ~Core() 289 listeners_.upper_bound(ListenerKey(record->name(), 0)); in NotifyNsecRecord() 290 for (; i != listeners_.end() && i->first.first == record->name(); i++) { in NotifyNsecRecord() 305 ListenerMap::iterator listener_map_iterator = listeners_.find(key); in AlertListeners() 306 if (listener_map_iterator == listeners_.end()) return; in AlertListeners() 316 listeners_.insert( in AddListener() 331 ListenerMap::iterator observer_list_iterator = listeners_.find(key); in RemoveListener() 333 DCHECK(observer_list_iterator != listeners_.end()); in RemoveListener() 349 ListenerMap::iterator found = listeners_.find(key); in CleanupObserverList() 350 if (found != listeners_.end() && !found->second->might_have_observers()) { in CleanupObserverList() [all …]
|
/external/chromium_org/sync/sessions/ |
D | sync_session_context.h | 94 return &listeners_; in listeners() 132 ObserverList<SyncEngineEventListener> listeners_; variable
|
/external/chromium_org/content/browser/service_worker/ |
D | service_worker_version.cc | 132 FOR_EACH_OBSERVER(Listener, listeners_, OnVersionStateChanged(this)); in SetStatus() 386 listeners_.AddObserver(listener); in AddListener() 390 listeners_.RemoveObserver(listener); in RemoveListener() 397 FOR_EACH_OBSERVER(Listener, listeners_, OnWorkerStarted(this)); in OnStarted() 432 FOR_EACH_OBSERVER(Listener, listeners_, OnWorkerStopped(this)); in OnStopped() 442 listeners_, in OnReportException() 453 listeners_, in OnReportConsoleMessage()
|
/external/chromium_org/chrome/browser/devtools/device/ |
D | port_forwarding_controller.cc | 554 listeners_.push_back(listener); in AddListener() 559 std::find(listeners_.begin(), listeners_.end(), listener); in RemoveListener() 560 DCHECK(it != listeners_.end()); in RemoveListener() 561 listeners_.erase(it); in RemoveListener() 648 Listeners copy(listeners_); // Iterate over copy. in NotifyListeners()
|
/external/chromium_org/sync/engine/net/ |
D | server_connection_manager.cc | 270 FOR_EACH_OBSERVER(ServerConnectionEventListener, listeners_, in NotifyStatusChanged() 358 listeners_.AddObserver(listener); in AddListener() 364 listeners_.RemoveObserver(listener); in RemoveListener()
|
/external/chromium_org/chrome/test/chromedriver/chrome/ |
D | devtools_client_impl.cc | 132 unnotified_connect_listeners_ = listeners_; in ConnectIfNecessary() 165 listeners_.push_back(listener); in AddListener() 308 unnotified_event_listeners_ = listeners_; in ProcessEvent() 380 unnotified_cmd_response_listeners_ = listeners_; in ProcessCommandResponse()
|