Chromium Code Reviews| Index: lib/dom/scripts/generator.py |
| diff --git a/lib/dom/scripts/generator.py b/lib/dom/scripts/generator.py |
| index e0c7b552f16dc2de2f21f877f5edbdcca1f097d3..88a4356e6d6c2f3f36e6eb4df3ec6cf73b5b2ccb 100644 |
| --- a/lib/dom/scripts/generator.py |
| +++ b/lib/dom/scripts/generator.py |
| @@ -161,11 +161,9 @@ def MakeNativeSpec(javascript_binding_name): |
| return '*' + javascript_binding_name |
| -def MatchSourceFilter(filter, thing): |
| - if not filter: |
| - return True |
| - else: |
| - return any(token in thing.annotations for token in filter) |
| +def MatchSourceFilter(thing): |
| + filter = ['WebKit', 'Dart'] |
| + return any(token in thing.annotations for token in filter) |
|
Anton Muhin
2012/06/27 18:13:55
nit: as you hard code filter, code in this method
podivilov
2012/06/27 18:48:07
Done.
|
| def DartType(idl_type_name): |