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

Side by Side Diff: tools/dom/templates/html/dartium/cpp_header.template

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // WARNING: Do not edit - generated code.
6
7 #ifndef Dart$(INTERFACE)_h
8 #define Dart$(INTERFACE)_h
9
10 #include "bindings/dart/DartDOMWrapper.h"
11 $WEBCORE_INCLUDES
12
13 // FIXME: We need this to access the WrapperTypeInfo.
14 $V8_INTERFACE_INCLUDE
15
16 #include <dart_api.h>
17
18 namespace WebCore {
19
20 struct Dart$INTERFACE {
21 static const int dartClassId = $(INTERFACE)ClassId;
22 typedef $WEBCORE_CLASS_NAME NativeType;
23 static const bool isNode = $IS_NODE;
24 static const bool isActive = $IS_ACTIVE;
25 static const bool isEventTarget = $IS_EVENT_TARGET;
26
27 static ActiveDOMObject* toActiveDOMObject(void* value)
28 {
29 $TO_ACTIVE
30 }
31 static EventTarget* toEventTarget(void* value)
32 {
33 $TO_EVENT_TARGET
34 }
35 static Node* toNode(void* value)
36 {
37 $TO_NODE
38 }
39 static $WEBCORE_CLASS_NAME* toNative(void* value)
40 {
41 return static_cast<$WEBCORE_CLASS_NAME*>(value);
42 }
43
44 $TO_NATIVE
45 $TO_DART
46 static Dart_Handle toDart(PassRefPtr< $WEBCORE_CLASS_NAME > value)
47 {
48 return toDart(value.get());
49 }
50 static Dart_Handle createWrapper(PassRefPtr< $WEBCORE_CLASS_NAME > value)
51 {
52 return createWrapper(value.get());
53 }
54 static void returnToDart(Dart_NativeArguments args,
55 PassRefPtr< $WEBCORE_CLASS_NAME > value,
56 bool autoDartScope = true)
57 {
58 return returnToDart(args, value.get(), autoDartScope);
59 }
60
61 static Dart_NativeFunction resolver(Dart_Handle name,
62 int argumentCount,
63 bool* autoSetupScope);
64 };
65
66 Dart_Handle $(WEBCORE_CLASS_NAME_ESCAPED)_toDart(PassRefPtr< $WEBCORE_CLASS_NAME > value);
67
68 namespace Dart$(INTERFACE)Internal {
69 $DECLARATIONS
70 }
71
72 } // namespace WebCore
73
74 #endif // Dart$(INTERFACE)_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698