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 68% |
copy from third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.cpp |
copy to third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.cpp |
index 0212d64f3744944b850730eb1edcba4f39c50ca4..a3d0229860e0d2f0ff18e8363f0d0f0c36fa271c 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(WillBeHeapVector<RefPtrWillBeMember<IntersectionObserverEntry>>& entries, IntersectionObserver* observer) |
{ |
if (!canInvokeCallback()) |
return; |
@@ -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); |
} |