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

Unified Diff: lib/dom/scripts/generator.py

Issue 10700006: Make per-interface generators an implementation detail of a system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
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):

Powered by Google App Engine
This is Rietveld 408576698