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

Side by Side Diff: lib/dom/templates/dom/native/cpp_callback_header.template

Issue 10331015: Remove ParameterAdapters for bindings classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Emit to native conversion in virtual method. Created 8 years, 7 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
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 #ifndef Dart$(INTERFACE)_h 7 #ifndef Dart$(INTERFACE)_h
8 #define Dart$(INTERFACE)_h 8 #define Dart$(INTERFACE)_h
9 9
10 #include "ActiveDOMCallback.h" 10 #include "ActiveDOMCallback.h"
11 #include "DartCallback.h" 11 #include "DartCallback.h"
12 #include "DartDOMWrapper.h" 12 #include "DartDOMWrapper.h"
13 #include "$(INTERFACE).h" 13 #include "$(INTERFACE).h"
14 14
15 namespace WebCore { 15 namespace WebCore {
16 16
17 class Dart$(INTERFACE) : public $(INTERFACE), public ActiveDOMCallback { 17 class Dart$(INTERFACE) : public $(INTERFACE), public ActiveDOMCallback {
18 public: 18 public:
19 typedef $(INTERFACE) NativeType; 19 typedef $(INTERFACE) NativeType;
20 20
21 static PassRefPtr<NativeType> toNative(Dart_Handle object, Dart_Handle& exce ption) 21 static PassRefPtr<NativeType> create(Dart_Handle object, DartUtilities::Conv ersionFlag flag, Dart_Handle& exception)
22 { 22 {
23 if (flag == DartUtilities::ConvertNullToDefaultValue && Dart_IsNull(obje ct))
24 return 0;
23 return adoptRef(new Dart$(INTERFACE)(object, exception, DartUtilities::s criptExecutionContext())); 25 return adoptRef(new Dart$(INTERFACE)(object, exception, DartUtilities::s criptExecutionContext()));
24 } 26 }
25 $HANDLERS 27 $HANDLERS
26 28
27 private: 29 private:
28 Dart$(INTERFACE)(Dart_Handle object, Dart_Handle& exception, ScriptExecution Context* context) 30 Dart$(INTERFACE)(Dart_Handle object, Dart_Handle& exception, ScriptExecution Context* context)
29 : ActiveDOMCallback(context) 31 : ActiveDOMCallback(context)
30 , m_callback(object, exception) 32 , m_callback(object, exception)
31 { 33 {
32 } 34 }
33 35
34 DartCallback m_callback; 36 DartCallback m_callback;
35 }; 37 };
36 38
37 } 39 }
38 40
39 #endif // Dart$(INTERFACE)_h 41 #endif // Dart$(INTERFACE)_h
OLDNEW
« lib/dom/scripts/systemnative.py ('K') | « lib/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698