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

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: Rebased to ToT! Created 4 years, 7 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 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 if (enableWebBluetooth) 1484 if (enableWebBluetooth)
1485 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth( ) : nullptr); 1485 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth( ) : nullptr);
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->webVRClient() : n ullptr); 1494 VRController::provideTo(*m_frame, m_client ? m_client->serviceRegistry() : nullptr);
1495 if (RuntimeEnabledFeatures::wakeLockEnabled()) 1495 if (RuntimeEnabledFeatures::wakeLockEnabled())
1496 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->serviceRegistry (): nullptr); 1496 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->serviceRegistry (): nullptr);
1497 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) 1497 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())
1498 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl:: create()); 1498 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl:: create());
1499 if (RuntimeEnabledFeatures::installedAppEnabled()) 1499 if (RuntimeEnabledFeatures::installedAppEnabled())
1500 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install edAppClient() : nullptr); 1500 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install edAppClient() : nullptr);
1501 } 1501 }
1502 1502
1503 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& uniqueName) 1503 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& uniqueName)
1504 { 1504 {
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
2124 return WebSandboxFlags::None; 2124 return WebSandboxFlags::None;
2125 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2125 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2126 } 2126 }
2127 2127
2128 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) 2128 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags)
2129 { 2129 {
2130 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2130 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2131 } 2131 }
2132 2132
2133 } // namespace blink 2133 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698