Home
last modified time | relevance | path

Searched refs:event_router (Results 1 – 25 of 102) sorted by relevance

12345

/external/chromium_org/chrome/browser/extensions/
Devent_router_forwarder_unittest.cc49 static void BroadcastEventToRenderers(EventRouterForwarder* event_router, in BroadcastEventToRenderers() argument
53 event_router->BroadcastEventToRenderers(event_name, args.Pass(), url); in BroadcastEventToRenderers()
56 static void DispatchEventToRenderers(EventRouterForwarder* event_router, in DispatchEventToRenderers() argument
62 event_router->DispatchEventToRenderers(event_name, args.Pass(), profile, in DispatchEventToRenderers()
66 static void BroadcastEventToExtension(EventRouterForwarder* event_router, in BroadcastEventToExtension() argument
71 event_router->BroadcastEventToExtension(extension, event_name, args.Pass(), in BroadcastEventToExtension()
75 static void DispatchEventToExtension(EventRouterForwarder* event_router, in DispatchEventToExtension() argument
82 event_router->DispatchEventToExtension( in DispatchEventToExtension()
120 scoped_refptr<MockEventRouterForwarder> event_router( in TEST_F() local
123 EXPECT_CALL(*event_router.get(), in TEST_F()
[all …]
/external/chromium_org/chrome/browser/extensions/api/tabs/
Dtabs_windows_api.cc20 EventRouter* event_router = EventRouter::Get(browser_context_); in TabsWindowsAPI() local
23 event_router->RegisterObserver(this, api::tabs::OnCreated::kEventName); in TabsWindowsAPI()
24 event_router->RegisterObserver(this, api::tabs::OnUpdated::kEventName); in TabsWindowsAPI()
25 event_router->RegisterObserver(this, api::tabs::OnMoved::kEventName); in TabsWindowsAPI()
26 event_router->RegisterObserver(this, in TabsWindowsAPI()
28 event_router->RegisterObserver(this, api::tabs::OnActiveChanged::kEventName); in TabsWindowsAPI()
29 event_router->RegisterObserver(this, api::tabs::OnActivated::kEventName); in TabsWindowsAPI()
30 event_router->RegisterObserver(this, in TabsWindowsAPI()
32 event_router->RegisterObserver(this, api::tabs::OnHighlighted::kEventName); in TabsWindowsAPI()
33 event_router->RegisterObserver(this, api::tabs::OnDetached::kEventName); in TabsWindowsAPI()
[all …]
/external/chromium_org/extensions/browser/api/bluetooth_low_energy/
Dbluetooth_low_energy_apitest.cc113 event_router()->SetAdapterForTesting(mock_adapter_); in SetUpMocks()
206 BluetoothLowEnergyEventRouter* event_router() { in event_router() function in __anon6ff409b90111::BluetoothLowEnergyApiTest
208 ->event_router(); in event_router()
294 event_router()->GattServiceAdded( in IN_PROC_BROWSER_TEST_F()
317 event_router()->GattServiceRemoved( in IN_PROC_BROWSER_TEST_F()
331 event_router()->GattServiceAdded( in IN_PROC_BROWSER_TEST_F()
333 event_router()->GattServiceAdded( in IN_PROC_BROWSER_TEST_F()
337 event_router()->GattDiscoveryCompleteForService(mock_adapter_, in IN_PROC_BROWSER_TEST_F()
339 event_router()->GattDiscoveryCompleteForService(mock_adapter_, in IN_PROC_BROWSER_TEST_F()
343 event_router()->GattServiceChanged(mock_adapter_, service1_.get()); in IN_PROC_BROWSER_TEST_F()
[all …]
Dbluetooth_low_energy_api.cc70 return extensions::BluetoothLowEnergyAPI::Get(context)->event_router(); in GetEventRouter()
125 BluetoothLowEnergyEventRouter* event_router = in RunAsync() local
127 if (!event_router->IsBluetoothSupported()) { in RunAsync()
133 if (!event_router->InitializeAdapterAndInvokeCallback(base::Bind( in RunAsync()
146 BluetoothLowEnergyEventRouter* event_router = in DoWork() local
151 if (!event_router->HasAdapter()) { in DoWork()
166 event_router->Connect( in DoWork()
189 BluetoothLowEnergyEventRouter* event_router = in DoWork() local
194 if (!event_router->HasAdapter()) { in DoWork()
204 event_router->Disconnect( in DoWork()
[all …]
/external/chromium_org/chrome/browser/extensions/api/networking_private/
Dnetworking_private_event_router_nonchromeos.cc58 EventRouter* event_router = EventRouter::Get(profile_); in NetworkingPrivateEventRouterImpl() local
59 if (!event_router) in NetworkingPrivateEventRouterImpl()
61 event_router->RegisterObserver( in NetworkingPrivateEventRouterImpl()
63 event_router->RegisterObserver( in NetworkingPrivateEventRouterImpl()
76 EventRouter* event_router = EventRouter::Get(profile_); in Shutdown() local
77 if (event_router) in Shutdown()
78 event_router->UnregisterObserver(this); in Shutdown()
102 EventRouter* event_router = EventRouter::Get(profile_); in StartOrStopListeningForNetworkChanges() local
103 if (!event_router) in StartOrStopListeningForNetworkChanges()
106 event_router->HasEventListener( in StartOrStopListeningForNetworkChanges()
[all …]
Dnetworking_private_event_router_chromeos.cc77 EventRouter* event_router = EventRouter::Get(profile_); in NetworkingPrivateEventRouterImpl() local
78 if (event_router) { in NetworkingPrivateEventRouterImpl()
79 event_router->RegisterObserver( in NetworkingPrivateEventRouterImpl()
81 event_router->RegisterObserver( in NetworkingPrivateEventRouterImpl()
83 event_router->RegisterObserver( in NetworkingPrivateEventRouterImpl()
97 EventRouter* event_router = EventRouter::Get(profile_); in Shutdown() local
98 if (event_router) in Shutdown()
99 event_router->UnregisterObserver(this); in Shutdown()
122 EventRouter* event_router = EventRouter::Get(profile_); in StartOrStopListeningForNetworkChanges() local
124 event_router->HasEventListener( in StartOrStopListeningForNetworkChanges()
[all …]
/external/chromium_org/chrome/browser/speech/extension_api/
Dtts_engine_extension_observer.cc73 extensions::EventRouter* event_router = system->event_router(); in TtsEngineExtensionObserver() local
74 DCHECK(event_router); in TtsEngineExtensionObserver()
75 event_router->RegisterObserver(this, tts_engine_events::kOnSpeak); in TtsEngineExtensionObserver()
76 event_router->RegisterObserver(this, tts_engine_events::kOnStop); in TtsEngineExtensionObserver()
103 extensions::EventRouter* event_router = system->event_router(); in IsLoadedTtsEngine() local
104 DCHECK(event_router); in IsLoadedTtsEngine()
105 if (event_router->ExtensionHasEventListener(extension_id, in IsLoadedTtsEngine()
107 event_router->ExtensionHasEventListener(extension_id, in IsLoadedTtsEngine()
Dtts_engine_extension_api.cc49 Profile* profile, EventRouter* event_router, std::string extension_id) { in WarnIfMissingPauseOrResumeListener() argument
50 bool has_onpause = event_router->ExtensionHasEventListener( in WarnIfMissingPauseOrResumeListener()
52 bool has_onresume = event_router->ExtensionHasEventListener( in WarnIfMissingPauseOrResumeListener()
76 EventRouter* event_router = EventRouter::Get(profile); in GetVoices() local
77 DCHECK(event_router); in GetVoices()
88 if (!event_router->ExtensionHasEventListener( in GetVoices()
90 !event_router->ExtensionHasEventListener( in GetVoices()
202 EventRouter* event_router = EventRouter::Get(profile); in Pause() local
204 event_router->DispatchEventToExtension(id, event.Pass()); in Pause()
205 WarnIfMissingPauseOrResumeListener(profile, event_router, id); in Pause()
[all …]
/external/chromium_org/extensions/browser/api/bluetooth/
Dbluetooth_api.cc39 return extensions::BluetoothAPI::Get(context)->event_router(); in GetEventRouter()
64 EventRouter* event_router = EventRouter::Get(browser_context_); in BluetoothAPI() local
65 event_router->RegisterObserver(this, in BluetoothAPI()
67 event_router->RegisterObserver(this, bluetooth::OnDeviceAdded::kEventName); in BluetoothAPI()
68 event_router->RegisterObserver(this, bluetooth::OnDeviceChanged::kEventName); in BluetoothAPI()
69 event_router->RegisterObserver(this, bluetooth::OnDeviceRemoved::kEventName); in BluetoothAPI()
74 BluetoothEventRouter* BluetoothAPI::event_router() { in event_router() function in extensions::BluetoothAPI
89 if (event_router()->IsBluetoothSupported()) in OnListenerAdded()
90 event_router()->OnListenerAdded(); in OnListenerAdded()
95 if (event_router()->IsBluetoothSupported()) in OnListenerRemoved()
[all …]
Dbluetooth_apitest.cc61 event_router()->SetAdapterForTest(mock_adapter_); in SetUpMockAdapter()
99 extensions::BluetoothEventRouter* event_router() { in event_router() function in __anon5f1f19a50111::BluetoothApiTest
100 return bluetooth_api()->event_router(); in event_router()
154 event_router()->DeviceAdded(mock_adapter_, device1_.get()); in IN_PROC_BROWSER_TEST_F()
155 event_router()->DeviceAdded(mock_adapter_, device2_.get()); in IN_PROC_BROWSER_TEST_F()
161 event_router()->DeviceChanged(mock_adapter_, device2_.get()); in IN_PROC_BROWSER_TEST_F()
163 event_router()->DeviceAdded(mock_adapter_, device3_.get()); in IN_PROC_BROWSER_TEST_F()
164 event_router()->DeviceRemoved(mock_adapter_, device1_.get()); in IN_PROC_BROWSER_TEST_F()
243 event_router()->DeviceAdded(mock_adapter_, device1_.get()); in IN_PROC_BROWSER_TEST_F()
251 event_router()->DeviceAdded(mock_adapter_, device2_.get()); in IN_PROC_BROWSER_TEST_F()
[all …]
/external/chromium_org/chrome/browser/chromeos/file_system_provider/operations/
Doperation.cc17 bool DispatchEventImpl(extensions::EventRouter* event_router, in DispatchEventImpl() argument
20 if (!event_router->ExtensionHasEventListener(extension_id, event->event_name)) in DispatchEventImpl()
23 event_router->DispatchEventToExtension(extension_id, event.Pass()); in DispatchEventImpl()
29 Operation::Operation(extensions::EventRouter* event_router, in Operation() argument
33 event_router, in Operation()
Dunmount.cc14 Unmount::Unmount(extensions::EventRouter* event_router, in Unmount() argument
17 : Operation(event_router, file_system_info), callback_(callback) { in Unmount()
Dclose_file.cc16 CloseFile::CloseFile(extensions::EventRouter* event_router, in CloseFile() argument
20 : Operation(event_router, file_system_info), in CloseFile()
Dabort.cc16 Abort::Abort(extensions::EventRouter* event_router, in Abort() argument
20 : Operation(event_router, file_system_info), in Abort()
Dcreate_file.cc16 CreateFile::CreateFile(extensions::EventRouter* event_router, in CreateFile() argument
20 : Operation(event_router, file_system_info), in CreateFile()
Dcopy_entry.cc16 CopyEntry::CopyEntry(extensions::EventRouter* event_router, in CopyEntry() argument
21 : Operation(event_router, file_system_info), in CopyEntry()
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/
Dbraille_display_private_api.cc123 EventRouter* event_router = EventRouter::Get(profile_); in DefaultEventDelegate() local
124 event_router->RegisterObserver(observer_, OnDisplayStateChanged::kEventName); in DefaultEventDelegate()
125 event_router->RegisterObserver(observer_, OnKeyEvent::kEventName); in DefaultEventDelegate()
138 EventRouter* event_router = EventRouter::Get(profile_); in HasListener() local
139 return (event_router->HasEventListener(OnDisplayStateChanged::kEventName) || in HasListener()
140 event_router->HasEventListener(OnKeyEvent::kEventName)); in HasListener()
/external/chromium_org/chrome/browser/extensions/api/media_galleries_private/
Dgallery_watch_manager.cc38 base::WeakPtr<MediaGalleriesPrivateEventRouter> event_router, in SendGalleryChangedEventOnUIThread() argument
42 if (event_router.get()) in SendGalleryChangedEventOnUIThread()
43 event_router->OnGalleryChanged(gallery_id, extension_ids); in SendGalleryChangedEventOnUIThread()
62 base::WeakPtr<MediaGalleriesPrivateEventRouter> event_router,
128 base::WeakPtr<MediaGalleriesPrivateEventRouter> event_router, in GalleryFilePathWatcher() argument
133 : event_router_(event_router), in GalleryFilePathWatcher()
284 base::WeakPtr<MediaGalleriesPrivateEventRouter> event_router) { in SetupGalleryWatch() argument
287 gallery_id, watch_path, extension_id, event_router); in SetupGalleryWatch()
323 base::WeakPtr<MediaGalleriesPrivateEventRouter> event_router) { in StartGalleryWatch() argument
335 event_router, gallery_id, watch_path, extension_id, in StartGalleryWatch()
Dgallery_watch_manager.h47 base::WeakPtr<MediaGalleriesPrivateEventRouter> event_router);
76 base::WeakPtr<MediaGalleriesPrivateEventRouter> event_router);
/external/chromium_org/chrome/browser/extensions/api/proxy/
Dproxy_api.cc37 EventRouterForwarder* event_router, in OnProxyError() argument
48 event_router->DispatchEventToRenderers( in OnProxyError()
51 event_router->BroadcastEventToRenderers( in OnProxyError()
57 EventRouterForwarder* event_router, in OnPACScriptError() argument
78 event_router->DispatchEventToRenderers( in OnPACScriptError()
81 event_router->BroadcastEventToRenderers( in OnPACScriptError()
Dproxy_api.h51 void OnProxyError(EventRouterForwarder* event_router,
55 void OnPACScriptError(EventRouterForwarder* event_router,
/external/chromium_org/extensions/browser/api/runtime/
Druntime_api.cc110 system->event_router()->DispatchEventToExtension(extension_id, event.Pass()); in DispatchOnStartupEventImpl()
308 DCHECK(system->event_router()); in DispatchOnInstalledEvent()
311 system->event_router()->DispatchEventWithLazyListener(extension_id, in DispatchOnInstalledEvent()
332 system->event_router()->DispatchEventWithLazyListener((*i)->id(), in DispatchOnInstalledEvent()
350 DCHECK(system->event_router()); in DispatchOnUpdateAvailableEvent()
353 system->event_router()->DispatchEventToExtension(extension_id, event.Pass()); in DispatchOnUpdateAvailableEvent()
364 DCHECK(system->event_router()); in DispatchOnBrowserUpdateAvailableEvent()
367 system->event_router()->BroadcastEvent(event.Pass()); in DispatchOnBrowserUpdateAvailableEvent()
383 DCHECK(system->event_router()); in DispatchOnRestartRequiredEvent()
384 system->event_router()->DispatchEventToExtension(app_id, event.Pass()); in DispatchOnRestartRequiredEvent()
/external/chromium_org/chrome/browser/extensions/api/sync_file_system/
Dextension_sync_event_observer.cc126 EventRouter* event_router = EventRouter::Get(browser_context_); in BroadcastOrDispatchEvent() local
127 DCHECK(event_router); in BroadcastOrDispatchEvent()
134 event_router->BroadcastEvent(event.Pass()); in BroadcastOrDispatchEvent()
142 event_router->DispatchEventToExtension(extension_id, event.Pass()); in BroadcastOrDispatchEvent()
/external/chromium_org/chrome/browser/net/
Dchrome_extensions_network_delegate.cc85 extensions::EventRouterForwarder* event_router);
126 extensions::EventRouterForwarder* event_router) { in ChromeExtensionsNetworkDelegateImpl() argument
127 DCHECK(event_router); in ChromeExtensionsNetworkDelegateImpl()
128 event_router_ = event_router; in ChromeExtensionsNetworkDelegateImpl()
264 extensions::EventRouterForwarder* event_router) { in Create() argument
266 return new ChromeExtensionsNetworkDelegateImpl(event_router); in Create()
/external/chromium_org/chrome/browser/chromeos/extensions/file_manager/
Dprivate_api_file_system.cc99 file_manager::EventRouter* event_router = in NotifyCopyProgress() local
101 if (event_router) { in NotifyCopyProgress()
102 event_router->OnCopyProgress( in NotifyCopyProgress()
134 file_manager::EventRouter* event_router = in NotifyCopyCompletion() local
136 if (event_router) in NotifyCopyCompletion()
137 event_router->OnCopyCompleted( in NotifyCopyCompletion()
383 file_manager::EventRouter* event_router = in PerformFileWatchOperation() local
385 event_router->AddFileWatch( in PerformFileWatchOperation()
398 file_manager::EventRouter* event_router = in PerformFileWatchOperation() local
400 event_router->RemoveFileWatch(local_path, extension_id); in PerformFileWatchOperation()

12345