Index: third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8CustomElementLifecycleCallbacks.cpp b/third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp |
similarity index 77% |
rename from third_party/WebKit/Source/bindings/core/v8/V8CustomElementLifecycleCallbacks.cpp |
rename to third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp |
index 7a2b0b0ff9437fae805b1a3c3432a5ba3cab879e..1e30a7dfd1896edd5536a06bb86371f3866b1e8d 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8CustomElementLifecycleCallbacks.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp |
@@ -28,11 +28,11 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#include "bindings/core/v8/V8CustomElementLifecycleCallbacks.h" |
+#include "bindings/core/v8/V8V0CustomElementLifecycleCallbacks.h" |
-#include "bindings/core/v8/CustomElementBinding.h" |
#include "bindings/core/v8/DOMDataStore.h" |
#include "bindings/core/v8/ScriptController.h" |
+#include "bindings/core/v8/V0CustomElementBinding.h" |
#include "bindings/core/v8/V8Binding.h" |
#include "bindings/core/v8/V8Element.h" |
#include "bindings/core/v8/V8HiddenValue.h" |
@@ -48,7 +48,7 @@ namespace blink { |
V(detached, DetachedCallback) \ |
V(attributeChanged, AttributeChangedCallback) |
-V8CustomElementLifecycleCallbacks* V8CustomElementLifecycleCallbacks::create(ScriptState* scriptState, v8::Local<v8::Object> prototype, v8::MaybeLocal<v8::Function> created, v8::MaybeLocal<v8::Function> attached, v8::MaybeLocal<v8::Function> detached, v8::MaybeLocal<v8::Function> attributeChanged) |
+V8V0CustomElementLifecycleCallbacks* V8V0CustomElementLifecycleCallbacks::create(ScriptState* scriptState, v8::Local<v8::Object> prototype, v8::MaybeLocal<v8::Function> created, v8::MaybeLocal<v8::Function> attached, v8::MaybeLocal<v8::Function> detached, v8::MaybeLocal<v8::Function> attributeChanged) |
{ |
v8::Isolate* isolate = scriptState->isolate(); |
// A given object can only be used as a Custom Element prototype |
@@ -61,24 +61,24 @@ V8CustomElementLifecycleCallbacks* V8CustomElementLifecycleCallbacks::create(Scr |
CALLBACK_LIST(SET_HIDDEN_VALUE) |
#undef SET_HIDDEN_VALUE |
- return new V8CustomElementLifecycleCallbacks(scriptState, prototype, created, attached, detached, attributeChanged); |
+ return new V8V0CustomElementLifecycleCallbacks(scriptState, prototype, created, attached, detached, attributeChanged); |
} |
-static CustomElementLifecycleCallbacks::CallbackType flagSet(v8::MaybeLocal<v8::Function> attached, v8::MaybeLocal<v8::Function> detached, v8::MaybeLocal<v8::Function> attributeChanged) |
+static V0CustomElementLifecycleCallbacks::CallbackType flagSet(v8::MaybeLocal<v8::Function> attached, v8::MaybeLocal<v8::Function> detached, v8::MaybeLocal<v8::Function> attributeChanged) |
{ |
// V8 Custom Elements always run created to swizzle prototypes. |
- int flags = CustomElementLifecycleCallbacks::CreatedCallback; |
+ int flags = V0CustomElementLifecycleCallbacks::CreatedCallback; |
if (!attached.IsEmpty()) |
- flags |= CustomElementLifecycleCallbacks::AttachedCallback; |
+ flags |= V0CustomElementLifecycleCallbacks::AttachedCallback; |
if (!detached.IsEmpty()) |
- flags |= CustomElementLifecycleCallbacks::DetachedCallback; |
+ flags |= V0CustomElementLifecycleCallbacks::DetachedCallback; |
if (!attributeChanged.IsEmpty()) |
- flags |= CustomElementLifecycleCallbacks::AttributeChangedCallback; |
+ flags |= V0CustomElementLifecycleCallbacks::AttributeChangedCallback; |
- return CustomElementLifecycleCallbacks::CallbackType(flags); |
+ return V0CustomElementLifecycleCallbacks::CallbackType(flags); |
} |
template <typename T> |
@@ -87,8 +87,8 @@ static void weakCallback(const v8::WeakCallbackInfo<ScopedPersistent<T>>& data) |
data.GetParameter()->clear(); |
} |
-V8CustomElementLifecycleCallbacks::V8CustomElementLifecycleCallbacks(ScriptState* scriptState, v8::Local<v8::Object> prototype, v8::MaybeLocal<v8::Function> created, v8::MaybeLocal<v8::Function> attached, v8::MaybeLocal<v8::Function> detached, v8::MaybeLocal<v8::Function> attributeChanged) |
- : CustomElementLifecycleCallbacks(flagSet(attached, detached, attributeChanged)) |
+V8V0CustomElementLifecycleCallbacks::V8V0CustomElementLifecycleCallbacks(ScriptState* scriptState, v8::Local<v8::Object> prototype, v8::MaybeLocal<v8::Function> created, v8::MaybeLocal<v8::Function> attached, v8::MaybeLocal<v8::Function> detached, v8::MaybeLocal<v8::Function> attributeChanged) |
+ : V0CustomElementLifecycleCallbacks(flagSet(attached, detached, attributeChanged)) |
, ContextLifecycleObserver(scriptState->getExecutionContext()) |
, m_scriptState(scriptState) |
, m_prototype(scriptState->isolate(), prototype) |
@@ -107,7 +107,7 @@ V8CustomElementLifecycleCallbacks::V8CustomElementLifecycleCallbacks(ScriptState |
#undef MAKE_WEAK |
} |
-V8PerContextData* V8CustomElementLifecycleCallbacks::creationContextData() |
+V8PerContextData* V8V0CustomElementLifecycleCallbacks::creationContextData() |
{ |
if (!getExecutionContext()) |
return 0; |
@@ -119,11 +119,11 @@ V8PerContextData* V8CustomElementLifecycleCallbacks::creationContextData() |
return V8PerContextData::from(context); |
} |
-V8CustomElementLifecycleCallbacks::~V8CustomElementLifecycleCallbacks() |
+V8V0CustomElementLifecycleCallbacks::~V8V0CustomElementLifecycleCallbacks() |
{ |
} |
-bool V8CustomElementLifecycleCallbacks::setBinding(PassOwnPtr<CustomElementBinding> binding) |
+bool V8V0CustomElementLifecycleCallbacks::setBinding(PassOwnPtr<V0CustomElementBinding> binding) |
{ |
V8PerContextData* perContextData = creationContextData(); |
if (!perContextData) |
@@ -136,7 +136,7 @@ bool V8CustomElementLifecycleCallbacks::setBinding(PassOwnPtr<CustomElementBindi |
return true; |
} |
-void V8CustomElementLifecycleCallbacks::created(Element* element) |
+void V8V0CustomElementLifecycleCallbacks::created(Element* element) |
{ |
// FIXME: callbacks while paused should be queued up for execution to |
// continue then be delivered in order rather than delivered immediately. |
@@ -173,17 +173,17 @@ void V8CustomElementLifecycleCallbacks::created(Element* element) |
ScriptController::callFunction(getExecutionContext(), callback, receiver, 0, 0, isolate); |
} |
-void V8CustomElementLifecycleCallbacks::attached(Element* element) |
+void V8V0CustomElementLifecycleCallbacks::attached(Element* element) |
{ |
call(m_attached, element); |
} |
-void V8CustomElementLifecycleCallbacks::detached(Element* element) |
+void V8V0CustomElementLifecycleCallbacks::detached(Element* element) |
{ |
call(m_detached, element); |
} |
-void V8CustomElementLifecycleCallbacks::attributeChanged(Element* element, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue) |
+void V8V0CustomElementLifecycleCallbacks::attributeChanged(Element* element, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue) |
{ |
// FIXME: callbacks while paused should be queued up for execution to |
// continue then be delivered in order rather than delivered immediately. |
@@ -215,7 +215,7 @@ void V8CustomElementLifecycleCallbacks::attributeChanged(Element* element, const |
ScriptController::callFunction(getExecutionContext(), callback, receiver, WTF_ARRAY_LENGTH(argv), argv, isolate); |
} |
-void V8CustomElementLifecycleCallbacks::call(const ScopedPersistent<v8::Function>& weakCallback, Element* element) |
+void V8V0CustomElementLifecycleCallbacks::call(const ScopedPersistent<v8::Function>& weakCallback, Element* element) |
{ |
// FIXME: callbacks while paused should be queued up for execution to |
// continue then be delivered in order rather than delivered immediately. |
@@ -241,9 +241,9 @@ void V8CustomElementLifecycleCallbacks::call(const ScopedPersistent<v8::Function |
ScriptController::callFunction(getExecutionContext(), callback, receiver, 0, 0, isolate); |
} |
-DEFINE_TRACE(V8CustomElementLifecycleCallbacks) |
+DEFINE_TRACE(V8V0CustomElementLifecycleCallbacks) |
{ |
- CustomElementLifecycleCallbacks::trace(visitor); |
+ V0CustomElementLifecycleCallbacks::trace(visitor); |
ContextLifecycleObserver::trace(visitor); |
} |