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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp

Issue 2485773002: Enable ImageCapture origin trial experiment (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/modules/imagecapture/ImageCapture.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "bindings/modules/v8/ConditionalFeaturesForModules.h" 5 #include "bindings/modules/v8/ConditionalFeaturesForModules.h"
6 6
7 #include "bindings/core/v8/ScriptState.h" 7 #include "bindings/core/v8/ScriptState.h"
8 #include "bindings/core/v8/V8DedicatedWorkerGlobalScope.h" 8 #include "bindings/core/v8/V8DedicatedWorkerGlobalScope.h"
9 #include "bindings/core/v8/V8Navigator.h" 9 #include "bindings/core/v8/V8Navigator.h"
10 #include "bindings/core/v8/V8SharedWorkerGlobalScope.h" 10 #include "bindings/core/v8/V8SharedWorkerGlobalScope.h"
11 #include "bindings/core/v8/V8Window.h" 11 #include "bindings/core/v8/V8Window.h"
12 #include "bindings/core/v8/V8WorkerNavigator.h" 12 #include "bindings/core/v8/V8WorkerNavigator.h"
13 #include "bindings/modules/v8/V8DedicatedWorkerGlobalScopePartial.h" 13 #include "bindings/modules/v8/V8DedicatedWorkerGlobalScopePartial.h"
14 #include "bindings/modules/v8/V8Gamepad.h" 14 #include "bindings/modules/v8/V8Gamepad.h"
15 #include "bindings/modules/v8/V8GamepadButton.h" 15 #include "bindings/modules/v8/V8GamepadButton.h"
16 #include "bindings/modules/v8/V8ImageCapture.h"
Reilly Grant (use Gerrit) 2016/11/08 16:39:50 I don't think this include is required.
mcasas 2016/11/08 16:43:48 Done.
16 #include "bindings/modules/v8/V8InstallEvent.h" 17 #include "bindings/modules/v8/V8InstallEvent.h"
17 #include "bindings/modules/v8/V8NavigatorPartial.h" 18 #include "bindings/modules/v8/V8NavigatorPartial.h"
18 #include "bindings/modules/v8/V8ServiceWorkerGlobalScope.h" 19 #include "bindings/modules/v8/V8ServiceWorkerGlobalScope.h"
19 #include "bindings/modules/v8/V8SharedWorkerGlobalScopePartial.h" 20 #include "bindings/modules/v8/V8SharedWorkerGlobalScopePartial.h"
20 #include "bindings/modules/v8/V8WindowPartial.h" 21 #include "bindings/modules/v8/V8WindowPartial.h"
21 #include "bindings/modules/v8/V8WorkerNavigatorPartial.h" 22 #include "bindings/modules/v8/V8WorkerNavigatorPartial.h"
22 #include "core/dom/ExecutionContext.h" 23 #include "core/dom/ExecutionContext.h"
23 #include "core/origin_trials/OriginTrials.h" 24 #include "core/origin_trials/OriginTrials.h"
24 25
25 namespace blink { 26 namespace blink {
(...skipping 28 matching lines...) Expand all
54 } 55 }
55 if (OriginTrials::webUSBEnabled(executionContext)) { 56 if (OriginTrials::webUSBEnabled(executionContext)) {
56 V8NavigatorPartial::installWebUSB(isolate, world, v8::Local<v8::Object>(), 57 V8NavigatorPartial::installWebUSB(isolate, world, v8::Local<v8::Object>(),
57 prototypeObject, interfaceObject); 58 prototypeObject, interfaceObject);
58 } 59 }
59 if (OriginTrials::webVREnabled(executionContext)) { 60 if (OriginTrials::webVREnabled(executionContext)) {
60 V8NavigatorPartial::installWebVR(isolate, world, global, prototypeObject, 61 V8NavigatorPartial::installWebVR(isolate, world, global, prototypeObject,
61 interfaceObject); 62 interfaceObject);
62 } 63 }
63 } else if (wrapperTypeInfo == &V8Window::wrapperTypeInfo) { 64 } else if (wrapperTypeInfo == &V8Window::wrapperTypeInfo) {
65 if (OriginTrials::imageCaptureEnabled(executionContext)) {
66 V8WindowPartial::installImageCapture(isolate, world, global,
67 prototypeObject, interfaceObject);
68 }
64 if (OriginTrials::webUSBEnabled(executionContext)) { 69 if (OriginTrials::webUSBEnabled(executionContext)) {
65 V8WindowPartial::installWebUSB(isolate, world, global, prototypeObject, 70 V8WindowPartial::installWebUSB(isolate, world, global, prototypeObject,
66 interfaceObject); 71 interfaceObject);
67 } 72 }
68 if (OriginTrials::webVREnabled(executionContext)) { 73 if (OriginTrials::webVREnabled(executionContext)) {
69 V8WindowPartial::installWebVR(isolate, world, global, prototypeObject, 74 V8WindowPartial::installWebVR(isolate, world, global, prototypeObject,
70 interfaceObject); 75 interfaceObject);
71 } 76 }
72 if (OriginTrials::gamepadExtensionsEnabled(executionContext)) { 77 if (OriginTrials::gamepadExtensionsEnabled(executionContext)) {
73 V8WindowPartial::installGamepadExtensions( 78 V8WindowPartial::installGamepadExtensions(
(...skipping 23 matching lines...) Expand all
97 } 102 }
98 } 103 }
99 104
100 void registerInstallConditionalFeaturesForModules() { 105 void registerInstallConditionalFeaturesForModules() {
101 s_originalInstallConditionalFeaturesFunction = 106 s_originalInstallConditionalFeaturesFunction =
102 setInstallConditionalFeaturesFunction( 107 setInstallConditionalFeaturesFunction(
103 &installConditionalFeaturesForModules); 108 &installConditionalFeaturesForModules);
104 } 109 }
105 110
106 } // namespace blink 111 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/imagecapture/ImageCapture.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698