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

Unified Diff: client/dom/scripts/systemnative.py

Issue 9495014: Support Dart optional arguments which are not dispatched, but instead use default values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/dom/scripts/fremontcutbuilder.py ('k') | client/dom/scripts/systemwrapping.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/systemnative.py
diff --git a/client/dom/scripts/systemnative.py b/client/dom/scripts/systemnative.py
index ae75dbcd8e242f543647c188a025c78718820206..a2a83bd2e4ad1770e687f249e98bc643e2da26c7 100644
--- a/client/dom/scripts/systemnative.py
+++ b/client/dom/scripts/systemnative.py
@@ -678,7 +678,7 @@ class NativeImplementationGenerator(systemwrapping.WrappingInterfaceGenerator):
self._cpp_impl_includes[include_name] = 1
flags = ''
if (idl_argument.ext_attrs.get('Optional') == 'DefaultIsNullString' or
- ('Optional' in idl_argument.ext_attrs and 'Callback' in idl_argument.ext_attrs)):
+ 'RequiredCppParameter' in idl_argument.ext_attrs):
flags = ', DartUtilities::ConvertNullToDefaultValue'
emitter.Emit(
'\n'
« no previous file with comments | « client/dom/scripts/fremontcutbuilder.py ('k') | client/dom/scripts/systemwrapping.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698