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

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

Issue 10913125: Remove lib/dom directory! (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 parent_interface = _FindInHierarchy(database, parent_interface, test) 960 parent_interface = _FindInHierarchy(database, parent_interface, test)
961 if parent_interface: 961 if parent_interface:
962 return parent_interface 962 return parent_interface
963 963
964 def _ToWebKitName(name): 964 def _ToWebKitName(name):
965 name = name[0].lower() + name[1:] 965 name = name[0].lower() + name[1:]
966 name = re.sub(r'^(hTML|uRL|jS|xML|xSLT)', lambda s: s.group(1).lower(), 966 name = re.sub(r'^(hTML|uRL|jS|xML|xSLT)', lambda s: s.group(1).lower(),
967 name) 967 name)
968 return re.sub(r'^(create|exclusive)', lambda s: 'is' + s.group(1).capitalize() , 968 return re.sub(r'^(create|exclusive)', lambda s: 'is' + s.group(1).capitalize() ,
969 name) 969 name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698