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

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

Issue 10969073: Fixing up WheelEvent to follow W3C standards and work on all platforms. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporating review feedback 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/Device.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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 def SetImplementationEmitter(self, implementation_emitter): 169 def SetImplementationEmitter(self, implementation_emitter):
170 self._dart_impl_emitter = implementation_emitter 170 self._dart_impl_emitter = implementation_emitter
171 171
172 def ImplementsMergedMembers(self): 172 def ImplementsMergedMembers(self):
173 # We could not add merged functions to implementation class because 173 # We could not add merged functions to implementation class because
174 # underlying c++ object doesn't implement them. Merged functions are 174 # underlying c++ object doesn't implement them. Merged functions are
175 # generated on merged interface implementation instead. 175 # generated on merged interface implementation instead.
176 return False 176 return False
177 177
178 def HasCustomEventImplementation(self, member_name):
179 return False
180
178 def StartInterface(self): 181 def StartInterface(self):
179 # Create emitters for c++ implementation. 182 # Create emitters for c++ implementation.
180 if self.HasImplementation(): 183 if self.HasImplementation():
181 cpp_header_path = self._system._FilePathForCppHeader(self._interface.id) 184 cpp_header_path = self._system._FilePathForCppHeader(self._interface.id)
182 self._system._cpp_header_files.append(cpp_header_path) 185 self._system._cpp_header_files.append(cpp_header_path)
183 self._cpp_header_emitter = self._system._emitters.FileEmitter(cpp_header_p ath) 186 self._cpp_header_emitter = self._system._emitters.FileEmitter(cpp_header_p ath)
184 cpp_impl_path = self._system._FilePathForCppImplementation(self._interface .id) 187 cpp_impl_path = self._system._FilePathForCppImplementation(self._interface .id)
185 self._system._cpp_impl_files.append(cpp_impl_path) 188 self._system._cpp_impl_files.append(cpp_impl_path)
186 self._cpp_impl_emitter = self._system._emitters.FileEmitter(cpp_impl_path) 189 self._cpp_impl_emitter = self._system._emitters.FileEmitter(cpp_impl_path)
187 else: 190 else:
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 parent_interface = _FindInHierarchy(database, parent_interface, test) 941 parent_interface = _FindInHierarchy(database, parent_interface, test)
939 if parent_interface: 942 if parent_interface:
940 return parent_interface 943 return parent_interface
941 944
942 def _ToWebKitName(name): 945 def _ToWebKitName(name):
943 name = name[0].lower() + name[1:] 946 name = name[0].lower() + name[1:]
944 name = re.sub(r'^(hTML|uRL|jS|xML|xSLT)', lambda s: s.group(1).lower(), 947 name = re.sub(r'^(hTML|uRL|jS|xML|xSLT)', lambda s: s.group(1).lower(),
945 name) 948 name)
946 return re.sub(r'^(create|exclusive)', lambda s: 'is' + s.group(1).capitalize() , 949 return re.sub(r'^(create|exclusive)', lambda s: 'is' + s.group(1).capitalize() ,
947 name) 950 name)
OLDNEW
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | lib/html/src/Device.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698