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

Unified Diff: bindings/dart/scripts/dart_callback_interface.py

Issue 581453002: Dartium Roll 38 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Sync'd w/ r 182210 Created 6 years, 3 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
« no previous file with comments | « bindings/dart/scripts/dart_attributes.py ('k') | bindings/dart/scripts/dart_interface.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bindings/dart/scripts/dart_callback_interface.py
diff --git a/bindings/dart/scripts/dart_callback_interface.py b/bindings/dart/scripts/dart_callback_interface.py
index 9fb0ceae14e0ffacf0a17c7721914f72b819c4a7..5120af47c526d6a4c9a754533c5adf9768d48b8f 100644
--- a/bindings/dart/scripts/dart_callback_interface.py
+++ b/bindings/dart/scripts/dart_callback_interface.py
@@ -33,18 +33,18 @@ Extends IdlType with property |callback_cpp_type|.
Design doc: http://www.chromium.org/developers/design-documents/idl-compiler
"""
-from idl_types import IdlType
+from idl_types import IdlType, IdlTypeBase
import dart_types
from dart_utilities import DartUtilities
from v8_globals import includes
CALLBACK_INTERFACE_H_INCLUDES = frozenset([
- 'bindings/dart/DartCallback.h',
- 'bindings/dart/DartDOMWrapper.h',
- 'bindings/v8/ActiveDOMCallback.h',
+ 'bindings/core/dart/DartCallback.h',
+ 'bindings/core/dart/DartDOMWrapper.h',
+ 'bindings/core/v8/ActiveDOMCallback.h',
])
CALLBACK_INTERFACE_CPP_INCLUDES = frozenset([
- 'bindings/dart/DartBindingsCommonIncludes.h',
+ 'bindings/core/dart/DartBindingsCommonIncludes.h',
'wtf/GetPtr.h',
'wtf/RefPtr.h',
])
@@ -57,13 +57,13 @@ def cpp_type(idl_type):
return 'const String&'
if idl_type_name == 'void':
return 'void'
- # Callbacks use raw pointers, so used_as_argument=True
- usual_cpp_type = idl_type.cpp_type_args(used_as_argument=True)
+ # Callbacks use raw pointers, so raw_type=True
+ usual_cpp_type = idl_type.cpp_type_args(raw_type=True)
if usual_cpp_type.startswith(('Vector', 'HeapVector', 'WillBeHeapVector')):
return 'const %s&' % usual_cpp_type
return usual_cpp_type
-IdlType.callback_cpp_type = property(cpp_type)
+IdlTypeBase.callback_cpp_type = property(cpp_type)
def generate_callback_interface(callback_interface):
« no previous file with comments | « bindings/dart/scripts/dart_attributes.py ('k') | bindings/dart/scripts/dart_interface.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698