| 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 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1486 | 1486 |
| 1487 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1487 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
| 1488 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we
bScreenOrientationClient() : nullptr); | 1488 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we
bScreenOrientationClient() : nullptr); |
| 1489 if (RuntimeEnabledFeatures::presentationEnabled()) | 1489 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1490 PresentationController::provideTo(*m_frame, m_client ? m_client->present
ationClient() : nullptr); | 1490 PresentationController::provideTo(*m_frame, m_client ? m_client->present
ationClient() : nullptr); |
| 1491 if (RuntimeEnabledFeatures::permissionsEnabled()) | 1491 if (RuntimeEnabledFeatures::permissionsEnabled()) |
| 1492 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio
nClient() : nullptr); | 1492 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio
nClient() : nullptr); |
| 1493 if (RuntimeEnabledFeatures::webVREnabled()) | 1493 if (RuntimeEnabledFeatures::webVREnabled()) |
| 1494 VRController::provideTo(*m_frame, m_client ? m_client->serviceRegistry()
: nullptr); | 1494 VRController::provideTo(*m_frame, m_client ? m_client->serviceRegistry()
: nullptr); |
| 1495 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) | 1495 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) |
| 1496 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl::
create()); | 1496 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl::
create(*m_frame)); |
| 1497 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1497 if (RuntimeEnabledFeatures::installedAppEnabled()) |
| 1498 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install
edAppClient() : nullptr); | 1498 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install
edAppClient() : nullptr); |
| 1499 } | 1499 } |
| 1500 | 1500 |
| 1501 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner,
const AtomicString& name, const AtomicString& uniqueName) | 1501 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner,
const AtomicString& name, const AtomicString& uniqueName) |
| 1502 { | 1502 { |
| 1503 setCoreFrame(LocalFrame::create(m_frameLoaderClientImpl.get(), host, owner,
client() ? client()->serviceRegistry() : nullptr)); | 1503 setCoreFrame(LocalFrame::create(m_frameLoaderClientImpl.get(), host, owner,
client() ? client()->serviceRegistry() : nullptr)); |
| 1504 frame()->tree().setPrecalculatedName(name, uniqueName); | 1504 frame()->tree().setPrecalculatedName(name, uniqueName); |
| 1505 // We must call init() after m_frame is assigned because it is referenced | 1505 // We must call init() after m_frame is assigned because it is referenced |
| 1506 // during init(). Note that this may dispatch JS events; the frame may be | 1506 // during init(). Note that this may dispatch JS events; the frame may be |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2147 { | 2147 { |
| 2148 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2148 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
| 2149 } | 2149 } |
| 2150 | 2150 |
| 2151 void WebLocalFrameImpl::clearActiveFindMatch() | 2151 void WebLocalFrameImpl::clearActiveFindMatch() |
| 2152 { | 2152 { |
| 2153 ensureTextFinder().clearActiveFindMatch(); | 2153 ensureTextFinder().clearActiveFindMatch(); |
| 2154 } | 2154 } |
| 2155 | 2155 |
| 2156 } // namespace blink | 2156 } // namespace blink |
| OLD | NEW |