Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "bindings/modules/v8/V8IDBObserverCallback.h" | |
| 6 | |
| 7 #include "bindings/core/v8/ScriptController.h" | |
| 8 #include "bindings/core/v8/V8Binding.h" | |
| 9 #include "bindings/core/v8/V8PrivateProperty.h" | |
| 10 #include "bindings/modules/v8/V8IDBObserver.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 V8IDBObserverCallback::V8IDBObserverCallback(v8::Local<v8::Function> callback, v 8::Local<v8::Object> owner, ScriptState* scriptState) | |
| 15 : ActiveDOMCallback(scriptState->getExecutionContext()) | |
| 16 , m_callback(scriptState->isolate(), callback) | |
| 17 , m_scriptState(scriptState) | |
| 18 { | |
| 19 V8PrivateProperty::getIntersectionObserverCallback(scriptState->isolate()).s et(scriptState->context(), owner, callback); | |
|
palakj1
2016/06/14 03:09:28
getIDBObserver
| |
| 20 m_callback.setPhantom(); | |
| 21 } | |
| 22 | |
| 23 V8IDBObserverCallback::~V8IDBObserverCallback() | |
| 24 { | |
| 25 } | |
| 26 | |
| 27 DEFINE_TRACE(V8IDBObserverCallback) | |
| 28 { | |
| 29 IDBObserverCallback::trace(visitor); | |
| 30 ActiveDOMCallback::trace(visitor); | |
| 31 } | |
| 32 | |
| 33 } // namespace blink | |
| OLD | NEW |