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

Unified Diff: sky/engine/bindings-dart/dart/scripts/templates/global_h.template

Issue 875013003: Import Dart bindings as of Blink r188698. This merely copies the files over and does not attach any… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months 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
Index: sky/engine/bindings-dart/dart/scripts/templates/global_h.template
diff --git a/sky/engine/bindings-dart/dart/scripts/templates/global_h.template b/sky/engine/bindings-dart/dart/scripts/templates/global_h.template
new file mode 100644
index 0000000000000000000000000000000000000000..10a0b0732ff4230d23cac62f93c3f275cd81676d
--- /dev/null
+++ b/sky/engine/bindings-dart/dart/scripts/templates/global_h.template
@@ -0,0 +1,55 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// WARNING: Do not edit - generated code.
+
+#ifndef DartWebkitClassIds_h
+#define DartWebkitClassIds_h
+
+namespace blink {
+
+enum {
+ _InvalidClassId = 0,
+ _HistoryCrossFrameClassId,
+ _LocationCrossFrameClassId,
+ _DOMWindowCrossFrameClassId,
+ _DateTimeClassId,
+ _JsObjectClassId,
+ _JsFunctionClassId,
+ _JsArrayClassId,
+ // New types that are not auto-generated should be added here.
+
+{% for interface in interfaces %}
+ {% filter conditional(interface.conditional_string) %}
+ {{interface.name}}ClassId,
+ {% endfilter %}
+{% endfor %}
+{% for callback in callbacks %}
+ {% filter conditional(interface.conditional_string) %}
+ {{callback.name}}ClassId,
+ {% endfilter %}
+{% endfor %}
+ NumWebkitClassIds,
+};
+
+class ActiveDOMObject;
+class EventTarget;
+class Node;
+typedef ActiveDOMObject* (*ToActiveDOMObject)(void* value);
+typedef EventTarget* (*ToEventTarget)(void* value);
+typedef Node* (*ToNode)(void* value);
+typedef struct {
+ const char* jsName;
+ int base_class_id;
+ ToActiveDOMObject toActiveDOMObject;
+ ToEventTarget toEventTarget;
+ ToNode toNode;
+} DartWrapperTypeInfo;
+typedef DartWrapperTypeInfo _DartWebkitClassInfo[NumWebkitClassIds];
+
+extern _DartWebkitClassInfo DartWebkitClassInfo;
+
+} // Namspace WebCore
+
+#endif // DartWebkitClassIds_h

Powered by Google App Engine
This is Rietveld 408576698