| OLD | NEW |
| 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/ConditionalFeatures.h" | 7 #include "bindings/core/v8/ConditionalFeatures.h" |
| 8 #include "bindings/core/v8/ConditionalFeaturesForCore.h" | 8 #include "bindings/core/v8/ConditionalFeaturesForCore.h" |
| 9 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
| 10 #include "bindings/core/v8/V8DedicatedWorkerGlobalScope.h" | 10 #include "bindings/core/v8/V8DedicatedWorkerGlobalScope.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 v8::Local<v8::Object>(), | 171 v8::Local<v8::Object>(), |
| 172 v8::Local<v8::Function>()); | 172 v8::Local<v8::Function>()); |
| 173 if (context_data->GetExistingConstructorAndPrototypeForType( | 173 if (context_data->GetExistingConstructorAndPrototypeForType( |
| 174 &V8Navigator::wrapperTypeInfo, &prototype_object, | 174 &V8Navigator::wrapperTypeInfo, &prototype_object, |
| 175 &interface_object)) { | 175 &interface_object)) { |
| 176 V8NavigatorPartial::installWebUSB(isolate, world, v8::Local<v8::Object>(), | 176 V8NavigatorPartial::installWebUSB(isolate, world, v8::Local<v8::Object>(), |
| 177 prototype_object, interface_object); | 177 prototype_object, interface_object); |
| 178 } | 178 } |
| 179 return; | 179 return; |
| 180 } | 180 } |
| 181 if (feature == "WebVR") { | 181 if (feature == "WebVR1.1") { |
| 182 global_instance_object = script_state->GetContext()->Global(); | 182 global_instance_object = script_state->GetContext()->Global(); |
| 183 V8WindowPartial::installGamepadExtensions( | 183 V8WindowPartial::installGamepadExtensions( |
| 184 isolate, world, global_instance_object, v8::Local<v8::Object>(), | 184 isolate, world, global_instance_object, v8::Local<v8::Object>(), |
| 185 v8::Local<v8::Function>()); | 185 v8::Local<v8::Function>()); |
| 186 V8WindowPartial::installWebVR(isolate, world, global_instance_object, | 186 V8WindowPartial::installWebVR(isolate, world, global_instance_object, |
| 187 v8::Local<v8::Object>(), | 187 v8::Local<v8::Object>(), |
| 188 v8::Local<v8::Function>()); | 188 v8::Local<v8::Function>()); |
| 189 if (context_data->GetExistingConstructorAndPrototypeForType( | 189 if (context_data->GetExistingConstructorAndPrototypeForType( |
| 190 &V8Gamepad::wrapperTypeInfo, &prototype_object, | 190 &V8Gamepad::wrapperTypeInfo, &prototype_object, |
| 191 &interface_object)) { | 191 &interface_object)) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 214 RegisterInstallConditionalFeaturesForCore(); | 214 RegisterInstallConditionalFeaturesForCore(); |
| 215 g_original_install_conditional_features_function = | 215 g_original_install_conditional_features_function = |
| 216 SetInstallConditionalFeaturesFunction( | 216 SetInstallConditionalFeaturesFunction( |
| 217 &InstallConditionalFeaturesForModules); | 217 &InstallConditionalFeaturesForModules); |
| 218 g_original_install_pending_conditional_feature_function = | 218 g_original_install_pending_conditional_feature_function = |
| 219 SetInstallPendingConditionalFeatureFunction( | 219 SetInstallPendingConditionalFeatureFunction( |
| 220 &InstallPendingConditionalFeatureForModules); | 220 &InstallPendingConditionalFeatureForModules); |
| 221 } | 221 } |
| 222 | 222 |
| 223 } // namespace blink | 223 } // namespace blink |
| OLD | NEW |