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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 #include "core/timing/Performance.h" | 154 #include "core/timing/Performance.h" |
155 #include "modules/app_banner/AppBannerController.h" | 155 #include "modules/app_banner/AppBannerController.h" |
156 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" | 156 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" |
157 #include "modules/bluetooth/BluetoothSupplement.h" | 157 #include "modules/bluetooth/BluetoothSupplement.h" |
158 #include "modules/installedapp/InstalledAppController.h" | 158 #include "modules/installedapp/InstalledAppController.h" |
159 #include "modules/notifications/NotificationPermissionClient.h" | 159 #include "modules/notifications/NotificationPermissionClient.h" |
160 #include "modules/permissions/PermissionController.h" | 160 #include "modules/permissions/PermissionController.h" |
161 #include "modules/presentation/PresentationController.h" | 161 #include "modules/presentation/PresentationController.h" |
162 #include "modules/push_messaging/PushController.h" | 162 #include "modules/push_messaging/PushController.h" |
163 #include "modules/screen_orientation/ScreenOrientationController.h" | 163 #include "modules/screen_orientation/ScreenOrientationController.h" |
164 #include "modules/vr/VRController.h" | |
165 #include "modules/wake_lock/ScreenWakeLock.h" | 164 #include "modules/wake_lock/ScreenWakeLock.h" |
166 #include "platform/ScriptForbiddenScope.h" | 165 #include "platform/ScriptForbiddenScope.h" |
167 #include "platform/TraceEvent.h" | 166 #include "platform/TraceEvent.h" |
168 #include "platform/UserGestureIndicator.h" | 167 #include "platform/UserGestureIndicator.h" |
169 #include "platform/clipboard/ClipboardUtilities.h" | 168 #include "platform/clipboard/ClipboardUtilities.h" |
170 #include "platform/fonts/FontCache.h" | 169 #include "platform/fonts/FontCache.h" |
171 #include "platform/graphics/GraphicsContext.h" | 170 #include "platform/graphics/GraphicsContext.h" |
172 #include "platform/graphics/GraphicsLayerClient.h" | 171 #include "platform/graphics/GraphicsLayerClient.h" |
173 #include "platform/graphics/paint/ClipRecorder.h" | 172 #include "platform/graphics/paint/ClipRecorder.h" |
174 #include "platform/graphics/paint/DisplayItemCacheSkipper.h" | 173 #include "platform/graphics/paint/DisplayItemCacheSkipper.h" |
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1483 #endif | 1482 #endif |
1484 if (enableWebBluetooth) | 1483 if (enableWebBluetooth) |
1485 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth(
) : nullptr); | 1484 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth(
) : nullptr); |
1486 | 1485 |
1487 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1486 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
1488 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we
bScreenOrientationClient() : nullptr); | 1487 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we
bScreenOrientationClient() : nullptr); |
1489 if (RuntimeEnabledFeatures::presentationEnabled()) | 1488 if (RuntimeEnabledFeatures::presentationEnabled()) |
1490 PresentationController::provideTo(*m_frame, m_client ? m_client->present
ationClient() : nullptr); | 1489 PresentationController::provideTo(*m_frame, m_client ? m_client->present
ationClient() : nullptr); |
1491 if (RuntimeEnabledFeatures::permissionsEnabled()) | 1490 if (RuntimeEnabledFeatures::permissionsEnabled()) |
1492 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio
nClient() : nullptr); | 1491 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio
nClient() : nullptr); |
1493 if (RuntimeEnabledFeatures::webVREnabled()) | |
1494 VRController::provideTo(*m_frame, m_client ? m_client->serviceRegistry()
: nullptr); | |
1495 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) | 1492 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) |
1496 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl::
create()); | 1493 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl::
create()); |
1497 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1494 if (RuntimeEnabledFeatures::installedAppEnabled()) |
1498 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install
edAppClient() : nullptr); | 1495 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install
edAppClient() : nullptr); |
1499 } | 1496 } |
1500 | 1497 |
1501 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner,
const AtomicString& name, const AtomicString& uniqueName) | 1498 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner,
const AtomicString& name, const AtomicString& uniqueName) |
1502 { | 1499 { |
1503 setCoreFrame(LocalFrame::create(m_frameLoaderClientImpl.get(), host, owner,
client() ? client()->serviceRegistry() : nullptr)); | 1500 setCoreFrame(LocalFrame::create(m_frameLoaderClientImpl.get(), host, owner,
client() ? client()->serviceRegistry() : nullptr)); |
1504 frame()->tree().setPrecalculatedName(name, uniqueName); | 1501 frame()->tree().setPrecalculatedName(name, uniqueName); |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2147 { | 2144 { |
2148 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2145 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
2149 } | 2146 } |
2150 | 2147 |
2151 void WebLocalFrameImpl::clearActiveFindMatch() | 2148 void WebLocalFrameImpl::clearActiveFindMatch() |
2152 { | 2149 { |
2153 ensureTextFinder().clearActiveFindMatch(); | 2150 ensureTextFinder().clearActiveFindMatch(); |
2154 } | 2151 } |
2155 | 2152 |
2156 } // namespace blink | 2153 } // namespace blink |
OLD | NEW |