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

Side by Side Diff: client/dom/scripts/dartgenerator.py

Issue 8637013: Remove support for attribute event listeners. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, 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 generates Dart APIs from the IDL database.""" 6 """This module generates Dart APIs from the IDL database."""
7 7
8 import emitter 8 import emitter
9 import idlnode 9 import idlnode
10 import logging 10 import logging
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 frog_interface_generator] 452 frog_interface_generator]
453 453
454 for generator in generators: 454 for generator in generators:
455 generator.StartInterface() 455 generator.StartInterface()
456 456
457 for const in sorted(interface.constants, ConstantOutputOrder): 457 for const in sorted(interface.constants, ConstantOutputOrder):
458 for generator in generators: 458 for generator in generators:
459 generator.AddConstant(const) 459 generator.AddConstant(const)
460 460
461 for attr in sorted(interface.attributes, AttributeOutputOrder): 461 for attr in sorted(interface.attributes, AttributeOutputOrder):
462 if attr.type.id == 'EventListener': continue
462 if attr.is_fc_getter: 463 if attr.is_fc_getter:
463 for generator in generators: 464 for generator in generators:
464 generator.AddGetter(attr) 465 generator.AddGetter(attr)
465 elif attr.is_fc_setter: 466 elif attr.is_fc_setter:
466 for generator in generators: 467 for generator in generators:
467 generator.AddSetter(attr) 468 generator.AddSetter(attr)
468 469
469 # The implementation should define an indexer if the interface directly 470 # The implementation should define an indexer if the interface directly
470 # extends List. 471 # extends List.
471 for parent in interface.parents: 472 for parent in interface.parents:
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
2012 Arguments: 2013 Arguments:
2013 info: An OperationInfo object. 2014 info: An OperationInfo object.
2014 """ 2015 """
2015 # TODO(vsm): Handle overloads. 2016 # TODO(vsm): Handle overloads.
2016 self._members_emitter.Emit( 2017 self._members_emitter.Emit(
2017 '\n' 2018 '\n'
2018 ' $TYPE $NAME($ARGS) native;\n', 2019 ' $TYPE $NAME($ARGS) native;\n',
2019 TYPE=info.type_name, 2020 TYPE=info.type_name,
2020 NAME=info.name, 2021 NAME=info.name,
2021 ARGS=info.arg_implementation_declaration) 2022 ARGS=info.arg_implementation_declaration)
OLDNEW
« no previous file with comments | « client/dom/generated/wrapping_dom_externs.js ('k') | client/fling/dist/runtime/apps/adminz/adminz.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698