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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 #include "core/timing/Performance.h" | 155 #include "core/timing/Performance.h" |
156 #include "modules/app_banner/AppBannerController.h" | 156 #include "modules/app_banner/AppBannerController.h" |
157 #include "modules/bluetooth/BluetoothSupplement.h" | 157 #include "modules/bluetooth/BluetoothSupplement.h" |
158 #include "modules/geolocation/GeolocationController.h" | 158 #include "modules/geolocation/GeolocationController.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" | 164 #include "modules/vr/VRController.h" |
| 165 #include "modules/wake_lock/ScreenWakeLock.h" |
165 #include "platform/ScriptForbiddenScope.h" | 166 #include "platform/ScriptForbiddenScope.h" |
166 #include "platform/TraceEvent.h" | 167 #include "platform/TraceEvent.h" |
167 #include "platform/UserGestureIndicator.h" | 168 #include "platform/UserGestureIndicator.h" |
168 #include "platform/clipboard/ClipboardUtilities.h" | 169 #include "platform/clipboard/ClipboardUtilities.h" |
169 #include "platform/fonts/FontCache.h" | 170 #include "platform/fonts/FontCache.h" |
170 #include "platform/graphics/GraphicsContext.h" | 171 #include "platform/graphics/GraphicsContext.h" |
171 #include "platform/graphics/GraphicsLayerClient.h" | 172 #include "platform/graphics/GraphicsLayerClient.h" |
172 #include "platform/graphics/paint/ClipRecorder.h" | 173 #include "platform/graphics/paint/ClipRecorder.h" |
173 #include "platform/graphics/paint/DrawingRecorder.h" | 174 #include "platform/graphics/paint/DrawingRecorder.h" |
174 #include "platform/graphics/paint/SkPictureBuilder.h" | 175 #include "platform/graphics/paint/SkPictureBuilder.h" |
(...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 if (RuntimeEnabledFeatures::webBluetoothEnabled()) | 1712 if (RuntimeEnabledFeatures::webBluetoothEnabled()) |
1712 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->blueto
oth() : nullptr); | 1713 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->blueto
oth() : nullptr); |
1713 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1714 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
1714 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); | 1715 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); |
1715 if (RuntimeEnabledFeatures::presentationEnabled()) | 1716 if (RuntimeEnabledFeatures::presentationEnabled()) |
1716 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); | 1717 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); |
1717 if (RuntimeEnabledFeatures::permissionsEnabled()) | 1718 if (RuntimeEnabledFeatures::permissionsEnabled()) |
1718 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); | 1719 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); |
1719 if (RuntimeEnabledFeatures::webVREnabled()) | 1720 if (RuntimeEnabledFeatures::webVREnabled()) |
1720 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); | 1721 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); |
| 1722 if (RuntimeEnabledFeatures::wakeLockEnabled()) |
| 1723 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockCli
ent() : nullptr); |
1721 } | 1724 } |
1722 } | 1725 } |
1723 | 1726 |
1724 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) | 1727 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) |
1725 { | 1728 { |
1726 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); | 1729 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); |
1727 setCoreFrame(frame); | 1730 setCoreFrame(frame); |
1728 frame->tree().setName(name, fallbackName); | 1731 frame->tree().setName(name, fallbackName); |
1729 // We must call init() after m_frame is assigned because it is referenced | 1732 // We must call init() after m_frame is assigned because it is referenced |
1730 // during init(). Note that this may dispatch JS events; the frame may be | 1733 // during init(). Note that this may dispatch JS events; the frame may be |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2189 } | 2192 } |
2190 | 2193 |
2191 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const | 2194 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const |
2192 { | 2195 { |
2193 if (!frame()) | 2196 if (!frame()) |
2194 return WebSandboxFlags::None; | 2197 return WebSandboxFlags::None; |
2195 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2198 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
2196 } | 2199 } |
2197 | 2200 |
2198 } // namespace blink | 2201 } // namespace blink |
OLD | NEW |