OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This file has been auto-generated by generate_conditional_features.py. |
| 6 // DO NOT MODIFY! |
| 7 |
| 8 // This file has been generated from the Jinja2 template in |
| 9 // third_party/WebKit/Source/bindings/templates/ConditionalFeaturesForModules.cp
p.tmpl |
| 10 |
| 11 // clang-format off |
| 12 |
| 13 #include "bindings/modules/v8/ConditionalFeaturesForModules.h" |
| 14 |
| 15 #include "bindings/core/v8/ConditionalFeaturesForCore.h" |
| 16 #include "bindings/core/v8/V8Window.h" |
| 17 #include "core/context_features/ContextFeatureSettings.h" |
| 18 #include "core/dom/ExecutionContext.h" |
| 19 #include "core/frame/Frame.h" |
| 20 #include "core/origin_trials/OriginTrials.h" |
| 21 #include "platform/bindings/ConditionalFeatures.h" |
| 22 #include "platform/bindings/ScriptState.h" |
| 23 |
| 24 namespace blink { |
| 25 |
| 26 namespace { |
| 27 InstallConditionalFeaturesFunction |
| 28 g_original_install_conditional_features_function = nullptr; |
| 29 InstallPendingConditionalFeatureFunction |
| 30 g_original_install_pending_conditional_feature_function = nullptr; |
| 31 } |
| 32 |
| 33 void InstallConditionalFeaturesForModules( |
| 34 const WrapperTypeInfo* wrapper_type_info, |
| 35 const ScriptState* script_state, |
| 36 v8::Local<v8::Object> prototype_object, |
| 37 v8::Local<v8::Function> interface_object) { |
| 38 (*g_original_install_conditional_features_function)( |
| 39 wrapper_type_info, script_state, prototype_object, interface_object); |
| 40 } |
| 41 |
| 42 void InstallPendingConditionalFeatureForModules( |
| 43 const String& feature, |
| 44 const ScriptState* script_state) { |
| 45 (*g_original_install_pending_conditional_feature_function)(feature, |
| 46 script_state); |
| 47 |
| 48 // TODO(iclelland): Extract this common code out of ConditionalFeaturesForCore |
| 49 // and ConditionalFeaturesForModules into a block. |
| 50 } |
| 51 |
| 52 void RegisterInstallConditionalFeaturesForModules() { |
| 53 RegisterInstallConditionalFeaturesForCore(); |
| 54 g_original_install_conditional_features_function = |
| 55 SetInstallConditionalFeaturesFunction( |
| 56 &InstallConditionalFeaturesForModules); |
| 57 g_original_install_pending_conditional_feature_function = |
| 58 SetInstallPendingConditionalFeatureFunction( |
| 59 &InstallPendingConditionalFeatureForModules); |
| 60 } |
| 61 |
| 62 } // namespace blink |
OLD | NEW |