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

Side by Side Diff: client/dom/templates/dom/native/cpp_header.template

Issue 9316096: Draft implementation of c++ bindings generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | Annotate | Revision Log
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 "DartDOMWrapper.h"
11 $WEBCORE_INCLUDE
12 $ADDITIONAL_INCLUDES
13 #include <dart_api.h>
14
15 namespace WebCore {
16
17 struct Dart$INTERFACE {
18 static const char* const dartImplementationClassName;
19 typedef $WEBCORE_CLASS_NAME NativeType;
20
21 static PassRefPtr<NativeType> toNative(Dart_Handle handle, Dart_Handle& exce ption)
22 {
23 return DartDOMWrapper::unwrapDartWrapper<Dart$INTERFACE>(handle, excepti on);
24 }
25
26 static bool instanceOf(Dart_Handle handle)
27 {
28 return DartDOMWrapper::instanceOf(dartImplementationClassName, handle);
29 }
30
31 static Dart_NativeFunction resolver(Dart_Handle name, int argumentCount);
32 };
33
34 $TO_DART_VALUE
35 inline Dart_Handle toDartValue(PassRefPtr< $WEBCORE_CLASS_NAME > value)
36 {
37 return toDartValue(value.get());
38 }
39
40 namespace Dart$(INTERFACE)Internal {
41 $DECLARATIONS
42 }
43
44 }
45
46 #endif // Dart$(INTERFACE)_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698