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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/modules/ConditionalFeaturesForModules.cpp

Issue 2970003002: Add code generation for ConditionalFeatures bindings code (Closed)
Patch Set: Readability fixes Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/tests/results/modules/ConditionalFeaturesForModules.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/ConditionalFeaturesForModules.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/ConditionalFeaturesForModules.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..58eb0e3fa4edf447f69bc67e9aa9181b312c0420
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/tests/results/modules/ConditionalFeaturesForModules.cpp
@@ -0,0 +1,62 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file has been auto-generated by generate_conditional_features.py.
+// DO NOT MODIFY!
+
+// This file has been generated from the Jinja2 template in
+// third_party/WebKit/Source/bindings/templates/ConditionalFeaturesForModules.cpp.tmpl
+
+// clang-format off
+
+#include "bindings/modules/v8/ConditionalFeaturesForModules.h"
+
+#include "bindings/core/v8/ConditionalFeaturesForCore.h"
+#include "bindings/core/v8/V8Window.h"
+#include "core/context_features/ContextFeatureSettings.h"
+#include "core/dom/ExecutionContext.h"
+#include "core/frame/Frame.h"
+#include "core/origin_trials/OriginTrials.h"
+#include "platform/bindings/ConditionalFeatures.h"
+#include "platform/bindings/ScriptState.h"
+
+namespace blink {
+
+namespace {
+InstallConditionalFeaturesFunction
+ g_original_install_conditional_features_function = nullptr;
+InstallPendingConditionalFeatureFunction
+ g_original_install_pending_conditional_feature_function = nullptr;
+}
+
+void InstallConditionalFeaturesForModules(
+ const WrapperTypeInfo* wrapper_type_info,
+ const ScriptState* script_state,
+ v8::Local<v8::Object> prototype_object,
+ v8::Local<v8::Function> interface_object) {
+ (*g_original_install_conditional_features_function)(
+ wrapper_type_info, script_state, prototype_object, interface_object);
+}
+
+void InstallPendingConditionalFeatureForModules(
+ const String& feature,
+ const ScriptState* script_state) {
+ (*g_original_install_pending_conditional_feature_function)(feature,
+ script_state);
+
+ // TODO(iclelland): Extract this common code out of ConditionalFeaturesForCore
+ // and ConditionalFeaturesForModules into a block.
+}
+
+void RegisterInstallConditionalFeaturesForModules() {
+ RegisterInstallConditionalFeaturesForCore();
+ g_original_install_conditional_features_function =
+ SetInstallConditionalFeaturesFunction(
+ &InstallConditionalFeaturesForModules);
+ g_original_install_pending_conditional_feature_function =
+ SetInstallPendingConditionalFeatureFunction(
+ &InstallPendingConditionalFeatureForModules);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698