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

Side by Side Diff: third_party/WebKit/public/platform/WebRuntimeFeatures.h

Issue 2895413002: WebRuntimeFeatures moved to platform/ (Closed)
Patch Set: One more move Created 3 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
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the
13 * distribution.
14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31 #ifndef WebRuntimeFeatures_h
32 #define WebRuntimeFeatures_h
33
34 #include "WebCommon.h"
35 #include "WebString.h"
36
37 #include <string>
38
39 namespace blink {
40 // This class is used to enable runtime features of Blink.
41 // Stable features are enabled by default.
42 class WebRuntimeFeatures {
43 public:
44 // Enable features with status=experimental listed in
45 // Source/platform/RuntimeEnabledFeatures.in.
46 BLINK_PLATFORM_EXPORT static void EnableExperimentalFeatures(bool);
47
48 // Enable features with status=test listed in
49 // Source/platform/RuntimeEnabledFeatures.in.
50 BLINK_PLATFORM_EXPORT static void EnableTestOnlyFeatures(bool);
51
52 // Enables a feature by its string identifier from
53 // Source/platform/RuntimeEnabledFeatures.in.
54 // Note: We use std::string instead of WebString because this API can
55 // be called before blink::initalize(). We can't create WebString objects
56 // before blink::initialize().
57 BLINK_PLATFORM_EXPORT static void EnableFeatureFromString(
58 const std::string& name,
59 bool enable);
60
61 BLINK_PLATFORM_EXPORT static void EnableCompositedSelectionUpdate(bool);
62 BLINK_PLATFORM_EXPORT static bool IsCompositedSelectionUpdateEnabled();
63
64 BLINK_PLATFORM_EXPORT static void EnableDisplayList2dCanvas(bool);
65 BLINK_PLATFORM_EXPORT static void ForceDisplayList2dCanvas(bool);
66 BLINK_PLATFORM_EXPORT static void ForceDisable2dCanvasCopyOnWrite(bool);
67
68 BLINK_PLATFORM_EXPORT static void EnableOriginTrials(bool);
69 BLINK_PLATFORM_EXPORT static bool IsOriginTrialsEnabled();
70
71 BLINK_PLATFORM_EXPORT static void EnableAccelerated2dCanvas(bool);
72 BLINK_PLATFORM_EXPORT static void EnableAudioOutputDevices(bool);
73 BLINK_PLATFORM_EXPORT static void EnableCanvas2dImageChromium(bool);
74 BLINK_PLATFORM_EXPORT static void EnableColorCorrectRendering(bool);
75 BLINK_PLATFORM_EXPORT static void EnableColorCorrectRenderingDefaultMode(
76 bool);
77 BLINK_PLATFORM_EXPORT static void EnableDatabase(bool);
78 BLINK_PLATFORM_EXPORT static void EnableDecodeToYUV(bool);
79 BLINK_PLATFORM_EXPORT static void EnableDocumentWriteEvaluator(bool);
80 BLINK_PLATFORM_EXPORT static void EnableExperimentalCanvasFeatures(bool);
81 BLINK_PLATFORM_EXPORT static void EnableFastMobileScrolling(bool);
82 BLINK_PLATFORM_EXPORT static void EnableFeaturePolicy(bool);
83 BLINK_PLATFORM_EXPORT static void EnableFileSystem(bool);
84 BLINK_PLATFORM_EXPORT static void EnableForceTallerSelectPopup(bool);
85 BLINK_PLATFORM_EXPORT static void EnableGamepadExtensions(bool);
86 BLINK_PLATFORM_EXPORT static void EnableGenericSensor(bool);
87 BLINK_PLATFORM_EXPORT static void EnableHeapCompaction(bool);
88 BLINK_PLATFORM_EXPORT static void EnableInputMultipleFieldsUI(bool);
89 BLINK_PLATFORM_EXPORT static void EnableLazyParseCSS(bool);
90 BLINK_PLATFORM_EXPORT static void EnableLoadingWithMojo(bool);
91 BLINK_PLATFORM_EXPORT static void EnableMediaCapture(bool);
92 BLINK_PLATFORM_EXPORT static void EnableMediaDocumentDownloadButton(bool);
93 BLINK_PLATFORM_EXPORT static void EnableMediaSession(bool);
94 BLINK_PLATFORM_EXPORT static void EnableMiddleClickAutoscroll(bool);
95 BLINK_PLATFORM_EXPORT static void EnableNavigatorContentUtils(bool);
96 BLINK_PLATFORM_EXPORT static void EnableNetworkInformation(bool);
97 BLINK_PLATFORM_EXPORT static void EnableNotificationConstructor(bool);
98 BLINK_PLATFORM_EXPORT static void EnableNotificationContentImage(bool);
99 BLINK_PLATFORM_EXPORT static void EnableNotifications(bool);
100 BLINK_PLATFORM_EXPORT static void EnableOffMainThreadFetch(bool);
101 BLINK_PLATFORM_EXPORT static void EnableOnDeviceChange(bool);
102 BLINK_PLATFORM_EXPORT static void EnableOrientationEvent(bool);
103 BLINK_PLATFORM_EXPORT static void EnableOverlayScrollbars(bool);
104 BLINK_PLATFORM_EXPORT static void EnablePagePopup(bool);
105 BLINK_PLATFORM_EXPORT static void EnablePassiveDocumentEventListeners(bool);
106 BLINK_PLATFORM_EXPORT static void EnablePaymentRequest(bool);
107 BLINK_PLATFORM_EXPORT static void EnablePermissionsAPI(bool);
108 BLINK_PLATFORM_EXPORT static void EnablePointerEvent(bool);
109 BLINK_PLATFORM_EXPORT static void EnablePreciseMemoryInfo(bool);
110 BLINK_PLATFORM_EXPORT static void EnablePrintBrowser(bool);
111 BLINK_PLATFORM_EXPORT static void EnablePresentationAPI(bool);
112 BLINK_PLATFORM_EXPORT static void EnablePushMessaging(bool);
113 BLINK_PLATFORM_EXPORT static void EnableReducedReferrerGranularity(bool);
114 BLINK_PLATFORM_EXPORT static void EnableRenderingPipelineThrottling(bool);
115 BLINK_PLATFORM_EXPORT static void EnableRemotePlaybackAPI(bool);
116 BLINK_PLATFORM_EXPORT static void EnableRootLayerScrolling(bool);
117 BLINK_PLATFORM_EXPORT static void EnableScriptedSpeech(bool);
118 BLINK_PLATFORM_EXPORT static void EnableScrollAnchoring(bool);
119 BLINK_PLATFORM_EXPORT static void EnableServiceWorkerNavigationPreload(bool);
120 BLINK_PLATFORM_EXPORT static void EnableSharedArrayBuffer(bool);
121 BLINK_PLATFORM_EXPORT static void EnableSharedWorker(bool);
122 BLINK_PLATFORM_EXPORT static void EnableSlimmingPaintV2(bool);
123 BLINK_PLATFORM_EXPORT static void EnableSlimmingPaintInvalidation(bool);
124 BLINK_PLATFORM_EXPORT static void EnableTouchEventFeatureDetection(bool);
125 BLINK_PLATFORM_EXPORT static void EnableTouchpadAndWheelScrollLatching(bool);
126 BLINK_PLATFORM_EXPORT static void EnableV8IdleTasks(bool);
127 BLINK_PLATFORM_EXPORT static void EnableWebAssemblyStreaming(bool);
128 BLINK_PLATFORM_EXPORT static void EnableWebBluetooth(bool);
129 BLINK_PLATFORM_EXPORT static void EnableWebFontsInterventionV2With2G(bool);
130 BLINK_PLATFORM_EXPORT static void EnableWebFontsInterventionV2With3G(bool);
131 BLINK_PLATFORM_EXPORT static void EnableWebFontsInterventionV2WithSlow2G(
132 bool);
133 BLINK_PLATFORM_EXPORT static void EnableWebFontsInterventionTrigger(bool);
134 BLINK_PLATFORM_EXPORT static void EnableWebGLDraftExtensions(bool);
135 BLINK_PLATFORM_EXPORT static void EnableWebGLImageChromium(bool);
136 BLINK_PLATFORM_EXPORT static void EnableWebNfc(bool);
137 BLINK_PLATFORM_EXPORT static void EnableWebUsb(bool);
138 BLINK_PLATFORM_EXPORT static void EnableWebVR(bool);
139 BLINK_PLATFORM_EXPORT static void EnableWebVRExperimentalRendering(bool);
140 BLINK_PLATFORM_EXPORT static void EnableXSLT(bool);
141 BLINK_PLATFORM_EXPORT static void ForceOverlayFullscreenVideo(bool);
142 BLINK_PLATFORM_EXPORT static void EnableAutoplayMutedVideos(bool);
143 BLINK_PLATFORM_EXPORT static void EnableTimerThrottlingForBackgroundTabs(
144 bool);
145 BLINK_PLATFORM_EXPORT static void EnableTimerThrottlingForHiddenFrames(bool);
146 BLINK_PLATFORM_EXPORT static void EnableExpensiveBackgroundTimerThrottling(
147 bool);
148 BLINK_PLATFORM_EXPORT static void EnableCanvas2dDynamicRenderingModeSwitching(
149 bool);
150 BLINK_PLATFORM_EXPORT static void
151 EnableSendBeaconThrowForBlobWithNonSimpleType(bool);
152 BLINK_PLATFORM_EXPORT static void EnableBackgroundVideoTrackOptimization(
153 bool);
154 BLINK_PLATFORM_EXPORT static void EnableNewRemotePlaybackPipeline(bool);
155 BLINK_PLATFORM_EXPORT static void EnableVideoFullscreenOrientationLock(bool);
156 BLINK_PLATFORM_EXPORT static void EnableVideoRotateToFullscreen(bool);
157 BLINK_PLATFORM_EXPORT static void EnableVideoFullscreenDetection(bool);
158 BLINK_PLATFORM_EXPORT static void EnableMediaControlsOverlayPlayButton(bool);
159 BLINK_PLATFORM_EXPORT static void EnableLocationHardReload(bool);
160
161 private:
162 WebRuntimeFeatures();
163 };
164
165 } // namespace blink
166
167 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698