Chromium Code Reviews| Index: tools/dom/scripts/generator.py |
| diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py |
| index 8fa13f64ba2b4eb14342eff5adca411ce5d162e6..738cd1dac63ffda3124309a3f32b8024b12198fd 100644 |
| --- a/tools/dom/scripts/generator.py |
| +++ b/tools/dom/scripts/generator.py |
| @@ -796,8 +796,12 @@ def FindCommonAnnotations(interface_name, member_name=None): |
| else: |
| key = interface_name |
| - annotations = ["@DocsEditable", |
| - "@DomName('" + key + "')",] |
| + annotations = ["@DomName('" + key + "')",] |
| + # Only add this for members, so we don't add DocsEditable to templated classes |
| + # (they get it from the default class template) |
| + if member_name: |
| + annotations.append('@DocsEditable'); |
|
Andrei Mouravski
2013/01/22 22:49:10
Can you make this prepend so that the diff is near
blois
2013/01/22 22:58:50
If the order of attributes is not necessary, then
|
| + |
| if (dart_annotations.get(key) != None): |
| annotations.extend(dart_annotations.get(key)) |