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 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1469 | 1469 |
1470 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionClient
Impl::create()); | 1470 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionClient
Impl::create()); |
1471 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); | 1471 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); |
1472 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); | 1472 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); |
1473 m_geolocationClientProxy->setController(GeolocationController::from(m_frame.
get())); | 1473 m_geolocationClientProxy->setController(GeolocationController::from(m_frame.
get())); |
1474 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->webMIDI
Client() : nullptr)); | 1474 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->webMIDI
Client() : nullptr)); |
1475 provideIndexedDBClientTo(*m_frame, IndexedDBClientImpl::create()); | 1475 provideIndexedDBClientTo(*m_frame, IndexedDBClientImpl::create()); |
1476 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); | 1476 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
1477 provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::cr
eate(this)); | 1477 provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::cr
eate(this)); |
1478 | 1478 |
1479 bool enableWebBluetooth = RuntimeEnabledFeatures::webBluetoothEnabled(); | 1479 if (RuntimeEnabledFeatures::webBluetoothEnabled()) |
1480 #if OS(CHROMEOS) || OS(ANDROID) | |
1481 enableWebBluetooth = true; | |
1482 #endif | |
1483 | |
1484 if (enableWebBluetooth) | |
1485 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth(
) : nullptr); | 1480 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth(
) : nullptr); |
1486 | |
1487 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1481 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
1488 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we
bScreenOrientationClient() : nullptr); | 1482 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we
bScreenOrientationClient() : nullptr); |
1489 if (RuntimeEnabledFeatures::presentationEnabled()) | 1483 if (RuntimeEnabledFeatures::presentationEnabled()) |
1490 PresentationController::provideTo(*m_frame, m_client ? m_client->present
ationClient() : nullptr); | 1484 PresentationController::provideTo(*m_frame, m_client ? m_client->present
ationClient() : nullptr); |
1491 if (RuntimeEnabledFeatures::permissionsEnabled()) | 1485 if (RuntimeEnabledFeatures::permissionsEnabled()) |
1492 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio
nClient() : nullptr); | 1486 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio
nClient() : nullptr); |
1493 if (RuntimeEnabledFeatures::webVREnabled()) | 1487 if (RuntimeEnabledFeatures::webVREnabled()) |
1494 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : n
ullptr); | 1488 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : n
ullptr); |
1495 if (RuntimeEnabledFeatures::wakeLockEnabled()) | 1489 if (RuntimeEnabledFeatures::wakeLockEnabled()) |
1496 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->serviceRegistry
(): nullptr); | 1490 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->serviceRegistry
(): nullptr); |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2113 return WebSandboxFlags::None; | 2107 return WebSandboxFlags::None; |
2114 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2108 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
2115 } | 2109 } |
2116 | 2110 |
2117 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) | 2111 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) |
2118 { | 2112 { |
2119 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2113 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2120 } | 2114 } |
2121 | 2115 |
2122 } // namespace blink | 2116 } // namespace blink |
OLD | NEW |