Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1428)

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 1808203005: [OnionSoup] Moving VR service from content to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 #include "platform/graphics/GraphicsContext.h" 175 #include "platform/graphics/GraphicsContext.h"
176 #include "platform/graphics/GraphicsLayerClient.h" 176 #include "platform/graphics/GraphicsLayerClient.h"
177 #include "platform/graphics/paint/ClipRecorder.h" 177 #include "platform/graphics/paint/ClipRecorder.h"
178 #include "platform/graphics/paint/DrawingRecorder.h" 178 #include "platform/graphics/paint/DrawingRecorder.h"
179 #include "platform/graphics/paint/SkPictureBuilder.h" 179 #include "platform/graphics/paint/SkPictureBuilder.h"
180 #include "platform/graphics/skia/SkiaUtils.h" 180 #include "platform/graphics/skia/SkiaUtils.h"
181 #include "platform/heap/Handle.h" 181 #include "platform/heap/Handle.h"
182 #include "platform/network/ResourceRequest.h" 182 #include "platform/network/ResourceRequest.h"
183 #include "platform/scroll/ScrollTypes.h" 183 #include "platform/scroll/ScrollTypes.h"
184 #include "platform/scroll/ScrollbarTheme.h" 184 #include "platform/scroll/ScrollbarTheme.h"
185 #include "platform/vr/vr_dispatcher.h"
185 #include "platform/weborigin/KURL.h" 186 #include "platform/weborigin/KURL.h"
186 #include "platform/weborigin/SchemeRegistry.h" 187 #include "platform/weborigin/SchemeRegistry.h"
187 #include "platform/weborigin/SecurityPolicy.h" 188 #include "platform/weborigin/SecurityPolicy.h"
188 #include "public/platform/WebFloatPoint.h" 189 #include "public/platform/WebFloatPoint.h"
189 #include "public/platform/WebFloatRect.h" 190 #include "public/platform/WebFloatRect.h"
190 #include "public/platform/WebLayer.h" 191 #include "public/platform/WebLayer.h"
191 #include "public/platform/WebPoint.h" 192 #include "public/platform/WebPoint.h"
192 #include "public/platform/WebRect.h" 193 #include "public/platform/WebRect.h"
193 #include "public/platform/WebSecurityOrigin.h" 194 #include "public/platform/WebSecurityOrigin.h"
194 #include "public/platform/WebSize.h" 195 #include "public/platform/WebSize.h"
(...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 1549
1549 if (RuntimeEnabledFeatures::screenOrientationEnabled()) 1550 if (RuntimeEnabledFeatures::screenOrientationEnabled())
1550 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client ->webScreenOrientationClient() : nullptr); 1551 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client ->webScreenOrientationClient() : nullptr);
1551 if (RuntimeEnabledFeatures::presentationEnabled()) 1552 if (RuntimeEnabledFeatures::presentationEnabled())
1552 PresentationController::provideTo(*m_frame, m_client ? m_client->pre sentationClient() : nullptr); 1553 PresentationController::provideTo(*m_frame, m_client ? m_client->pre sentationClient() : nullptr);
1553 if (RuntimeEnabledFeatures::permissionsEnabled()) 1554 if (RuntimeEnabledFeatures::permissionsEnabled())
1554 PermissionController::provideTo(*m_frame, m_client ? m_client->permi ssionClient() : nullptr); 1555 PermissionController::provideTo(*m_frame, m_client ? m_client->permi ssionClient() : nullptr);
1555 if (RuntimeEnabledFeatures::webUSBEnabled()) 1556 if (RuntimeEnabledFeatures::webUSBEnabled())
1556 USBController::provideTo(*m_frame, m_client ? m_client->usbClient() : nullptr); 1557 USBController::provideTo(*m_frame, m_client ? m_client->usbClient() : nullptr);
1557 if (RuntimeEnabledFeatures::webVREnabled()) 1558 if (RuntimeEnabledFeatures::webVREnabled())
1558 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : nullptr); 1559 VRController::provideTo(*m_frame, VRDispatcher::create());
1559 if (RuntimeEnabledFeatures::wakeLockEnabled()) 1560 if (RuntimeEnabledFeatures::wakeLockEnabled())
1560 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockCli ent() : nullptr); 1561 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockCli ent() : nullptr);
1561 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) 1562 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())
1562 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientIm pl::create()); 1563 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientIm pl::create());
1563 if (RuntimeEnabledFeatures::installedAppEnabled()) { 1564 if (RuntimeEnabledFeatures::installedAppEnabled()) {
1564 InstalledAppController::provideTo(*m_frame, m_client ? m_client->ins talledAppClient() : nullptr); 1565 InstalledAppController::provideTo(*m_frame, m_client ? m_client->ins talledAppClient() : nullptr);
1565 } 1566 }
1566 } 1567 }
1567 } 1568 }
1568 1569
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
2193 return WebSandboxFlags::None; 2194 return WebSandboxFlags::None;
2194 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2195 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2195 } 2196 }
2196 2197
2197 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) 2198 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags)
2198 { 2199 {
2199 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2200 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2200 } 2201 }
2201 2202
2202 } // namespace blink 2203 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698