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

Side by Side Diff: tools/dom/scripts/systemhtml.py

Issue 12163009: Remove webkit prefix and annotate with experimental tag. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 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 system to generate 6 """This module provides shared functionality for the system to generate
7 Dart:html APIs from the IDL database.""" 7 Dart:html APIs from the IDL database."""
8 8
9 import emitter 9 import emitter
10 import os 10 import os
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 923
924 self._members_emitter.Emit( 924 self._members_emitter.Emit(
925 ' $RENAME$ANNOTATIONS$MODIFIERS$TYPE$TARGET($PARAMS) native;\n', 925 ' $RENAME$ANNOTATIONS$MODIFIERS$TYPE$TARGET($PARAMS) native;\n',
926 RENAME=self._RenamingAnnotation(info.declared_name, target), 926 RENAME=self._RenamingAnnotation(info.declared_name, target),
927 ANNOTATIONS=self._Annotations(info.type_name, info.declared_name), 927 ANNOTATIONS=self._Annotations(info.type_name, info.declared_name),
928 MODIFIERS='static ' if info.IsStatic() else '', 928 MODIFIERS='static ' if info.IsStatic() else '',
929 TYPE=TypeOrNothing(native_return_type), 929 TYPE=TypeOrNothing(native_return_type),
930 TARGET=target, 930 TARGET=target,
931 PARAMS=', '.join(target_parameters)) 931 PARAMS=', '.join(target_parameters))
932 932
933 declaration = '%s%s %s(%s)' % ( 933 declaration = '%s%s%s %s(%s)' % (
934 self._Annotations(info.type_name, info.declared_name),
934 'static ' if info.IsStatic() else '', 935 'static ' if info.IsStatic() else '',
935 return_type, 936 return_type,
936 html_name, 937 html_name,
937 info.ParametersDeclaration(InputType)) 938 info.ParametersDeclaration(InputType))
938 self._GenerateDispatcherBody( 939 self._GenerateDispatcherBody(
939 operations, 940 operations,
940 parameter_names, 941 parameter_names,
941 declaration, 942 declaration,
942 GenerateCall, 943 GenerateCall,
943 self._IsOptional, 944 self._IsOptional,
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 for library_name in libraries: 1106 for library_name in libraries:
1106 self._libraries[library_name] = DartLibrary( 1107 self._libraries[library_name] = DartLibrary(
1107 library_name, template_loader, library_type, output_dir) 1108 library_name, template_loader, library_type, output_dir)
1108 1109
1109 def AddFile(self, basename, library_name, path): 1110 def AddFile(self, basename, library_name, path):
1110 self._libraries[library_name].AddFile(path) 1111 self._libraries[library_name].AddFile(path)
1111 1112
1112 def Emit(self, emitter, auxiliary_dir): 1113 def Emit(self, emitter, auxiliary_dir):
1113 for lib in self._libraries.values(): 1114 for lib in self._libraries.values():
1114 lib.Emit(emitter, auxiliary_dir) 1115 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« tools/dom/scripts/generator.py ('K') | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698