OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 #include "public/web/WebScriptSource.h" | 214 #include "public/web/WebScriptSource.h" |
215 #include "public/web/WebSerializedScriptValue.h" | 215 #include "public/web/WebSerializedScriptValue.h" |
216 #include "public/web/WebTreeScopeType.h" | 216 #include "public/web/WebTreeScopeType.h" |
217 #include "skia/ext/platform_canvas.h" | 217 #include "skia/ext/platform_canvas.h" |
218 #include "web/AssociatedURLLoader.h" | 218 #include "web/AssociatedURLLoader.h" |
219 #include "web/AudioOutputDeviceClientImpl.h" | 219 #include "web/AudioOutputDeviceClientImpl.h" |
220 #include "web/CompositionUnderlineVectorBuilder.h" | 220 #include "web/CompositionUnderlineVectorBuilder.h" |
221 #include "web/FindInPageCoordinates.h" | 221 #include "web/FindInPageCoordinates.h" |
222 #include "web/IndexedDBClientImpl.h" | 222 #include "web/IndexedDBClientImpl.h" |
223 #include "web/LocalFileSystemClient.h" | 223 #include "web/LocalFileSystemClient.h" |
224 #include "web/MIDIClientProxy.h" | |
225 #include "web/NavigatorContentUtilsClientImpl.h" | 224 #include "web/NavigatorContentUtilsClientImpl.h" |
226 #include "web/NotificationPermissionClientImpl.h" | 225 #include "web/NotificationPermissionClientImpl.h" |
227 #include "web/RemoteFrameOwner.h" | 226 #include "web/RemoteFrameOwner.h" |
228 #include "web/SharedWorkerRepositoryClientImpl.h" | 227 #include "web/SharedWorkerRepositoryClientImpl.h" |
229 #include "web/SuspendableScriptExecutor.h" | 228 #include "web/SuspendableScriptExecutor.h" |
230 #include "web/TextFinder.h" | 229 #include "web/TextFinder.h" |
231 #include "web/WebDataSourceImpl.h" | 230 #include "web/WebDataSourceImpl.h" |
232 #include "web/WebDevToolsAgentImpl.h" | 231 #include "web/WebDevToolsAgentImpl.h" |
233 #include "web/WebFrameWidgetImpl.h" | 232 #include "web/WebFrameWidgetImpl.h" |
234 #include "web/WebPluginContainerImpl.h" | 233 #include "web/WebPluginContainerImpl.h" |
(...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1461 | 1460 |
1462 // FIXME: we shouldn't add overhead to every frame by registering these obje
cts when they're not used. | 1461 // FIXME: we shouldn't add overhead to every frame by registering these obje
cts when they're not used. |
1463 if (!m_frame) | 1462 if (!m_frame) |
1464 return; | 1463 return; |
1465 | 1464 |
1466 if (m_client) | 1465 if (m_client) |
1467 providePushControllerTo(*m_frame, m_client->pushClient()); | 1466 providePushControllerTo(*m_frame, m_client->pushClient()); |
1468 | 1467 |
1469 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionClient
Impl::create()); | 1468 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionClient
Impl::create()); |
1470 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); | 1469 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); |
1471 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->webMIDI
Client() : nullptr)); | |
1472 provideIndexedDBClientTo(*m_frame, IndexedDBClientImpl::create()); | 1470 provideIndexedDBClientTo(*m_frame, IndexedDBClientImpl::create()); |
1473 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); | 1471 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
1474 provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::cr
eate(this)); | 1472 provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::cr
eate(this)); |
1475 | 1473 |
1476 bool enableWebBluetooth = RuntimeEnabledFeatures::webBluetoothEnabled(); | 1474 bool enableWebBluetooth = RuntimeEnabledFeatures::webBluetoothEnabled(); |
1477 #if OS(CHROMEOS) || OS(ANDROID) || OS(MACOSX) | 1475 #if OS(CHROMEOS) || OS(ANDROID) || OS(MACOSX) |
1478 enableWebBluetooth = true; | 1476 enableWebBluetooth = true; |
1479 #endif | 1477 #endif |
1480 if (enableWebBluetooth) | 1478 if (enableWebBluetooth) |
1481 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth(
) : nullptr); | 1479 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth(
) : nullptr); |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2143 { | 2141 { |
2144 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2142 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2145 } | 2143 } |
2146 | 2144 |
2147 void WebLocalFrameImpl::clearActiveFindMatch() | 2145 void WebLocalFrameImpl::clearActiveFindMatch() |
2148 { | 2146 { |
2149 ensureTextFinder().clearActiveFindMatch(); | 2147 ensureTextFinder().clearActiveFindMatch(); |
2150 } | 2148 } |
2151 | 2149 |
2152 } // namespace blink | 2150 } // namespace blink |
OLD | NEW |