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

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

Issue 2188523005: Remove ScreenOrientation runtime flag (status=stable) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: V2 Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); 1476 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create());
1477 provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::cr eate(this)); 1477 provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::cr eate(this));
1478 1478
1479 bool enableWebBluetooth = RuntimeEnabledFeatures::webBluetoothEnabled(); 1479 bool enableWebBluetooth = RuntimeEnabledFeatures::webBluetoothEnabled();
1480 #if OS(CHROMEOS) || OS(ANDROID) || OS(MACOSX) 1480 #if OS(CHROMEOS) || OS(ANDROID) || OS(MACOSX)
1481 enableWebBluetooth = true; 1481 enableWebBluetooth = true;
1482 #endif 1482 #endif
1483 if (enableWebBluetooth) 1483 if (enableWebBluetooth)
1484 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth( ) : nullptr); 1484 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth( ) : nullptr);
1485 1485
1486 if (RuntimeEnabledFeatures::screenOrientationEnabled()) 1486 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->webScr eenOrientationClient() : nullptr);
1487 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->we bScreenOrientationClient() : nullptr);
1488 if (RuntimeEnabledFeatures::presentationEnabled()) 1487 if (RuntimeEnabledFeatures::presentationEnabled())
1489 PresentationController::provideTo(*m_frame, m_client ? m_client->present ationClient() : nullptr); 1488 PresentationController::provideTo(*m_frame, m_client ? m_client->present ationClient() : nullptr);
1490 if (RuntimeEnabledFeatures::webVREnabled()) 1489 if (RuntimeEnabledFeatures::webVREnabled())
1491 VRController::provideTo(*m_frame, m_client ? m_client->serviceRegistry() : nullptr); 1490 VRController::provideTo(*m_frame, m_client ? m_client->serviceRegistry() : nullptr);
1492 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) 1491 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())
1493 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl:: create()); 1492 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientImpl:: create());
1494 if (RuntimeEnabledFeatures::installedAppEnabled()) 1493 if (RuntimeEnabledFeatures::installedAppEnabled())
1495 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install edAppClient() : nullptr); 1494 InstalledAppController::provideTo(*m_frame, m_client ? m_client->install edAppClient() : nullptr);
1496 } 1495 }
1497 1496
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
2154 { 2153 {
2155 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2154 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2156 } 2155 }
2157 2156
2158 void WebLocalFrameImpl::clearActiveFindMatch() 2157 void WebLocalFrameImpl::clearActiveFindMatch()
2159 { 2158 {
2160 ensureTextFinder().clearActiveFindMatch(); 2159 ensureTextFinder().clearActiveFindMatch();
2161 } 2160 }
2162 2161
2163 } // namespace blink 2162 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698