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

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: Using std::unique_ptr and using [Sync] mojo call! 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 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 1478
1479 if (RuntimeEnabledFeatures::webBluetoothEnabled()) 1479 if (RuntimeEnabledFeatures::webBluetoothEnabled())
1480 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth( ) : nullptr); 1480 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth( ) : nullptr);
1481 if (RuntimeEnabledFeatures::screenOrientationEnabled()) 1481 if (RuntimeEnabledFeatures::screenOrientationEnabled())
1482 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we bScreenOrientationClient() : nullptr); 1482 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we bScreenOrientationClient() : nullptr);
1483 if (RuntimeEnabledFeatures::presentationEnabled()) 1483 if (RuntimeEnabledFeatures::presentationEnabled())
1484 PresentationController::provideTo(*m_frame, m_client ? m_client->present ationClient() : nullptr); 1484 PresentationController::provideTo(*m_frame, m_client ? m_client->present ationClient() : nullptr);
1485 if (RuntimeEnabledFeatures::permissionsEnabled()) 1485 if (RuntimeEnabledFeatures::permissionsEnabled())
1486 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio nClient() : nullptr); 1486 PermissionController::provideTo(*m_frame, m_client ? m_client->permissio nClient() : nullptr);
1487 if (RuntimeEnabledFeatures::webVREnabled()) 1487 if (RuntimeEnabledFeatures::webVREnabled())
1488 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : n ullptr); 1488 VRController::provideTo(*m_frame, m_client ? m_client->serviceRegistry() : nullptr);
1489 if (RuntimeEnabledFeatures::wakeLockEnabled()) 1489 if (RuntimeEnabledFeatures::wakeLockEnabled())
1490 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->serviceRegistry (): nullptr); 1490 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->serviceRegistry (): nullptr);
1491 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) 1491 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())
1492 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl:: create()); 1492 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl:: create());
1493 if (RuntimeEnabledFeatures::installedAppEnabled()) 1493 if (RuntimeEnabledFeatures::installedAppEnabled())
1494 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install edAppClient() : nullptr); 1494 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install edAppClient() : nullptr);
1495 } 1495 }
1496 1496
1497 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& uniqueName) 1497 void WebLocalFrameImpl::initializeCoreFrame(FrameHost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& uniqueName)
1498 { 1498 {
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
2110 return WebSandboxFlags::None; 2110 return WebSandboxFlags::None;
2111 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2111 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2112 } 2112 }
2113 2113
2114 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) 2114 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags)
2115 { 2115 {
2116 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2116 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2117 } 2117 }
2118 2118
2119 } // namespace blink 2119 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698