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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp

Issue 2843603002: Move ScriptWrappable and dependencies to platform/bindings (Closed)
Patch Set: Rebase and try again Created 3 years, 8 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/core/v8/ConditionalFeatures.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp
deleted file mode 100644
index be043ede7e7d5d6e40c1c61862c87d9c9dba4578..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2016 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.
-
-#include "bindings/core/v8/ConditionalFeatures.h"
-
-#include "bindings/core/v8/DOMWrapperWorld.h"
-#include "bindings/core/v8/ScriptState.h"
-
-namespace blink {
-
-void InstallConditionalFeaturesDefault(
- const WrapperTypeInfo* wrapper_type_info,
- const ScriptState* script_state,
- v8::Local<v8::Object> prototype_object,
- v8::Local<v8::Function> interface_object) {}
-
-void InstallPendingConditionalFeatureDefault(const String& feature,
- const ScriptState* script_state) {}
-
-namespace {
-InstallConditionalFeaturesFunction g_install_conditional_features_function =
- &InstallConditionalFeaturesDefault;
-
-InstallPendingConditionalFeatureFunction
- g_install_pending_conditional_feature_function =
- &InstallPendingConditionalFeatureDefault;
-} // namespace
-
-InstallConditionalFeaturesFunction SetInstallConditionalFeaturesFunction(
- InstallConditionalFeaturesFunction
- new_install_conditional_features_function) {
- InstallConditionalFeaturesFunction original_function =
- g_install_conditional_features_function;
- g_install_conditional_features_function =
- new_install_conditional_features_function;
- return original_function;
-}
-
-InstallPendingConditionalFeatureFunction
-SetInstallPendingConditionalFeatureFunction(
- InstallPendingConditionalFeatureFunction
- new_install_pending_conditional_feature_function) {
- InstallPendingConditionalFeatureFunction original_function =
- g_install_pending_conditional_feature_function;
- g_install_pending_conditional_feature_function =
- new_install_pending_conditional_feature_function;
- return original_function;
-}
-
-void InstallConditionalFeatures(const WrapperTypeInfo* type,
- const ScriptState* script_state,
- v8::Local<v8::Object> prototype_object,
- v8::Local<v8::Function> interface_object) {
- (*g_install_conditional_features_function)(
- type, script_state, prototype_object, interface_object);
-}
-
-void InstallPendingConditionalFeature(const String& feature,
- const ScriptState* script_state) {
- DCHECK(script_state);
- DCHECK(script_state->GetContext() ==
- script_state->GetIsolate()->GetCurrentContext());
- DCHECK(script_state->PerContextData());
- DCHECK(script_state->World().IsMainWorld());
-
- (*g_install_pending_conditional_feature_function)(feature, script_state);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698