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

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

Issue 10789010: Do not treat callbacks with no handlers as interfaces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 5 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
« no previous file with comments | « lib/dom/scripts/generator.py ('k') | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/systemfrog.py
diff --git a/lib/dom/scripts/systemfrog.py b/lib/dom/scripts/systemfrog.py
index 215d956ea085a4ea3419d3fdf601e7497ef7edf7..9a8dbb271c2694838481c7d3481fbd1405b03989 100644
--- a/lib/dom/scripts/systemfrog.py
+++ b/lib/dom/scripts/systemfrog.py
@@ -160,10 +160,8 @@ class FrogInterfaceGenerator(BaseGenerator):
return False
if self._system._database.HasInterface(type_name):
interface = self._system._database.GetInterface(type_name)
- if RecognizeCallback(interface):
- # Callbacks are typedef functions so don't have a class.
- return False
- return True
+ # Callbacks are typedef functions so don't have a class.
+ return 'Callback' not in interface.ext_attrs
return False
def _NarrowToImplementationType(self, type_name):
« no previous file with comments | « lib/dom/scripts/generator.py ('k') | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698