Index: third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.cpp b/third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.cpp |
similarity index 63% |
copy from third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.cpp |
copy to third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.cpp |
index 0113deaac8a6b36dd4cc7852aa17359408f1e277..b84a4265246cbf8aa865d5ed5f56911ce17bfc90 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.cpp |
@@ -1,22 +1,19 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Copyright 2015 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 code_generator_v8.py. DO NOT MODIFY! |
- |
#include "config.h" |
-#include "bindings/core/v8/V8PerformanceObserverCallback.h" |
+#include "bindings/core/v8/V8IntersectionObserverCallback.h" |
#include "bindings/core/v8/ScriptController.h" |
#include "bindings/core/v8/V8Binding.h" |
-#include "bindings/core/v8/V8PerformanceObserver.h" |
-#include "bindings/core/v8/V8PerformanceObserverEntryList.h" |
+#include "bindings/core/v8/V8IntersectionObserver.h" |
#include "core/dom/ExecutionContext.h" |
#include "wtf/Assertions.h" |
namespace blink { |
-V8PerformanceObserverCallback::V8PerformanceObserverCallback(v8::Local<v8::Function> callback, v8::Local<v8::Object> owner, ScriptState* scriptState) |
+V8IntersectionObserverCallback::V8IntersectionObserverCallback(v8::Local<v8::Function> callback, v8::Local<v8::Object> owner, ScriptState* scriptState) |
: ActiveDOMCallback(scriptState->executionContext()) |
, m_callback(scriptState->isolate(), callback) |
, m_scriptState(scriptState) |
@@ -25,11 +22,11 @@ V8PerformanceObserverCallback::V8PerformanceObserverCallback(v8::Local<v8::Funct |
m_callback.setWeak(this, &setWeakCallback); |
} |
-V8PerformanceObserverCallback::~V8PerformanceObserverCallback() |
+V8IntersectionObserverCallback::~V8IntersectionObserverCallback() |
{ |
} |
-void V8PerformanceObserverCallback::handleEvent(PerformanceObserverEntryList* entries, PerformanceObserver* observer) |
+void V8IntersectionObserverCallback::handleEvent(HeapVector<Member<IntersectionObserverEntry>>& entries, IntersectionObserver& observer) |
{ |
if (!canInvokeCallback()) |
return; |
@@ -40,7 +37,7 @@ void V8PerformanceObserverCallback::handleEvent(PerformanceObserverEntryList* en |
if (m_callback.isEmpty()) |
return; |
- v8::Local<v8::Value> observerHandle = toV8(observer, m_scriptState->context()->Global(), m_scriptState->isolate()); |
+ v8::Local<v8::Value> observerHandle = toV8(&observer, m_scriptState->context()->Global(), m_scriptState->isolate()); |
if (observerHandle.IsEmpty()) { |
if (!isScriptControllerTerminating()) |
CRASH(); |
@@ -62,14 +59,14 @@ void V8PerformanceObserverCallback::handleEvent(PerformanceObserverEntryList* en |
ScriptController::callFunction(m_scriptState->executionContext(), m_callback.newLocal(m_scriptState->isolate()), thisObject, 2, argv, m_scriptState->isolate()); |
} |
-void V8PerformanceObserverCallback::setWeakCallback(const v8::WeakCallbackInfo<V8PerformanceObserverCallback>& data) |
+void V8IntersectionObserverCallback::setWeakCallback(const v8::WeakCallbackInfo<V8IntersectionObserverCallback>& data) |
{ |
data.GetParameter()->m_callback.clear(); |
} |
-DEFINE_TRACE(V8PerformanceObserverCallback) |
+DEFINE_TRACE(V8IntersectionObserverCallback) |
{ |
- PerformanceObserverCallback::trace(visitor); |
+ IntersectionObserverCallback::trace(visitor); |
ActiveDOMCallback::trace(visitor); |
} |