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

Side by Side Diff: lib/html/scripts/systemnative.py

Issue 10982053: Reapply FooList -> List<Foo> with Gamepad fix for dartium. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | lib/html/src/dart2js_Conversions.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 """This module provides shared functionality for the systems to generate 6 """This module provides shared functionality for the systems to generate
7 native binding from the IDL database.""" 7 native binding from the IDL database."""
8 8
9 import emitter 9 import emitter
10 import os 10 import os
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 cpp_callback_name, 364 cpp_callback_name,
365 True, 365 True,
366 function_expression, 366 function_expression,
367 attr, 367 attr,
368 [], 368 [],
369 attr.type.id, 369 attr.type.id,
370 attr.get_raises) 370 attr.get_raises)
371 371
372 def _AddSetter(self, attr, html_name): 372 def _AddSetter(self, attr, html_name):
373 type_info = self._TypeInfo(attr.type.id) 373 type_info = self._TypeInfo(attr.type.id)
374 dart_declaration = 'void set %s(%s)' % (html_name, self._DartType(attr.type. id)) 374 dart_declaration = 'void set %s(%s value)' % (html_name, self._DartType(attr .type.id))
375 is_custom = set(['Custom', 'CustomSetter', 'V8CustomSetter']) & set(attr.ext _attrs) 375 is_custom = set(['Custom', 'CustomSetter', 'V8CustomSetter']) & set(attr.ext _attrs)
376 cpp_callback_name = self._GenerateNativeBinding(attr.id, 2, 376 cpp_callback_name = self._GenerateNativeBinding(attr.id, 2,
377 dart_declaration, 'Setter', is_custom) 377 dart_declaration, 'Setter', is_custom)
378 if is_custom: 378 if is_custom:
379 return 379 return
380 380
381 if 'Reflect' in attr.ext_attrs: 381 if 'Reflect' in attr.ext_attrs:
382 webcore_function_name = self._TypeInfo(attr.type.id).webcore_setter_name() 382 webcore_function_name = self._TypeInfo(attr.type.id).webcore_setter_name()
383 else: 383 else:
384 webcore_function_name = re.sub(r'^(xml(?=[A-Z])|\w)', 384 webcore_function_name = re.sub(r'^(xml(?=[A-Z])|\w)',
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 parent_interface = _FindInHierarchy(database, parent_interface, test) 919 parent_interface = _FindInHierarchy(database, parent_interface, test)
920 if parent_interface: 920 if parent_interface:
921 return parent_interface 921 return parent_interface
922 922
923 def _ToWebKitName(name): 923 def _ToWebKitName(name):
924 name = name[0].lower() + name[1:] 924 name = name[0].lower() + name[1:]
925 name = re.sub(r'^(hTML|uRL|jS|xML|xSLT)', lambda s: s.group(1).lower(), 925 name = re.sub(r'^(hTML|uRL|jS|xML|xSLT)', lambda s: s.group(1).lower(),
926 name) 926 name)
927 return re.sub(r'^(create|exclusive)', lambda s: 'is' + s.group(1).capitalize() , 927 return re.sub(r'^(create|exclusive)', lambda s: 'is' + s.group(1).capitalize() ,
928 name) 928 name)
OLDNEW
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | lib/html/src/dart2js_Conversions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698