Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: Source/bindings/core/dart/DartJsInteropData.h

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/core/dart/DartJsInterop.cpp ('k') | Source/bindings/core/dart/DartJsInteropData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/bindings/core/dart/DartJsInterop.cpp ('k') | Source/bindings/core/dart/DartJsInteropData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698