| Index: Source/bindings/core/dart/DartJsInteropData.h
|
| diff --git a/Source/core/testing/LayerRectList.h b/Source/bindings/core/dart/DartJsInteropData.h
|
| similarity index 66%
|
| copy from Source/core/testing/LayerRectList.h
|
| copy to Source/bindings/core/dart/DartJsInteropData.h
|
| index dc5e5e4bd924bbaaea4fac941ba54a5a44a8e0f3..9eb72ba253b597c00d815884a6275ff6d4d411af 100644
|
| --- a/Source/core/testing/LayerRectList.h
|
| +++ b/Source/bindings/core/dart/DartJsInteropData.h
|
| @@ -28,41 +28,38 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef LayerRectList_h
|
| -#define LayerRectList_h
|
| +#ifndef DartJsInteropData_h
|
| +#define DartJsInteropData_h
|
|
|
| -#include "bindings/core/v8/ScriptWrappable.h"
|
| -#include "wtf/PassRefPtr.h"
|
| #include "wtf/RefCounted.h"
|
| -#include "wtf/Vector.h"
|
| -#include "wtf/text/WTFString.h"
|
|
|
| -namespace blink {
|
| +#include <v8.h>
|
|
|
| -class ClientRect;
|
| -class LayerRect;
|
| -class Node;
|
| +namespace blink {
|
|
|
| -class LayerRectList final : public GarbageCollected<LayerRectList>, public ScriptWrappable {
|
| - DEFINE_WRAPPERTYPEINFO();
|
| +class DartJsInteropData {
|
| public:
|
| - static LayerRectList* create()
|
| - {
|
| - return new LayerRectList;
|
| - }
|
| + DartJsInteropData() { m_jsObjectImplDefined = false; }
|
|
|
| - unsigned length() const;
|
| - LayerRect* item(unsigned index);
|
| - void append(PassRefPtrWillBeRawPtr<Node> layerAssociatedNode, const String& layerName, int layerOffsetX, int layerOffsetY, ClientRect* layerRelativeRect);
|
| + v8::Local<v8::Function> captureThisFunction();
|
| + v8::Local<v8::Function> wrapDartFunction();
|
| + v8::Local<v8::Function> instanceofFunction();
|
|
|
| - DECLARE_TRACE();
|
| + bool jsObjectImplDefined() { return m_jsObjectImplDefined; }
|
| + void setJsObjectImplDefined() { m_jsObjectImplDefined = true; }
|
|
|
| private:
|
| - LayerRectList();
|
| + static v8::Local<v8::Function> cacheFunction(v8::Persistent<v8::Function>* cache, const char* scriptSrc);
|
| +
|
| + v8::Persistent<v8::Function> m_captureThisFunction;
|
| + v8::Persistent<v8::Function> m_wrapDartFunction;
|
| + v8::Persistent<v8::Function> m_instanceofFunction;
|
| +
|
| + bool m_jsObjectImplDefined;
|
|
|
| - HeapVector<Member<LayerRect>> m_list;
|
| + // FIXME: add maps of Dart to V8 and V8 to Dart objects.
|
| };
|
|
|
| -} // namespace blink
|
| +}
|
|
|
| -#endif // ClientRectList_h
|
| +#endif // DartJsInteropData_h
|
|
|