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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1490 if (enableWebBluetooth) | 1490 if (enableWebBluetooth) |
1491 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth(
) : nullptr); | 1491 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth(
) : nullptr); |
1492 | 1492 |
1493 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1493 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
1494 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we
bScreenOrientationClient() : nullptr); | 1494 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we
bScreenOrientationClient() : nullptr); |
1495 if (RuntimeEnabledFeatures::presentationEnabled()) | 1495 if (RuntimeEnabledFeatures::presentationEnabled()) |
1496 PresentationController::provideTo(*m_frame, m_client ? m_client->present
ationClient() : nullptr); | 1496 PresentationController::provideTo(*m_frame, m_client ? m_client->present
ationClient() : nullptr); |
1497 if (RuntimeEnabledFeatures::permissionsEnabled()) | 1497 if (RuntimeEnabledFeatures::permissionsEnabled()) |
1498 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio
nClient() : nullptr); | 1498 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio
nClient() : nullptr); |
1499 if (RuntimeEnabledFeatures::webVREnabled()) | 1499 if (RuntimeEnabledFeatures::webVREnabled()) |
1500 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : n
ullptr); | 1500 VRController::provideTo(*m_frame, m_client ? m_client->serviceRegistry()
: nullptr); |
1501 if (RuntimeEnabledFeatures::wakeLockEnabled()) | 1501 if (RuntimeEnabledFeatures::wakeLockEnabled()) |
1502 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->serviceRegistry
(): nullptr); | 1502 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->serviceRegistry
(): nullptr); |
1503 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) | 1503 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) |
1504 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl::
create()); | 1504 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl::
create()); |
1505 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1505 if (RuntimeEnabledFeatures::installedAppEnabled()) |
1506 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install
edAppClient() : nullptr); | 1506 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install
edAppClient() : nullptr); |
1507 } | 1507 } |
1508 | 1508 |
1509 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner,
const AtomicString& name, const AtomicString& uniqueName) | 1509 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner,
const AtomicString& name, const AtomicString& uniqueName) |
1510 { | 1510 { |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2129 return WebSandboxFlags::None; | 2129 return WebSandboxFlags::None; |
2130 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2130 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
2131 } | 2131 } |
2132 | 2132 |
2133 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) | 2133 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) |
2134 { | 2134 { |
2135 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2135 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2136 } | 2136 } |
2137 | 2137 |
2138 } // namespace blink | 2138 } // namespace blink |
OLD | NEW |