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

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

Issue 12163009: Remove webkit prefix and annotate with experimental tag. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index 408147ead6b1d226acbe283e8c684ff5b82f794c..0bf247207c4c2e8bb0c8ce28f406a27ba6e9c905 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -10,7 +10,7 @@ import copy
import json
import os
import re
-from htmlrenamer import html_interface_renames
+from htmlrenamer import html_interface_renames, renamed_html_members
# Set up json file for retrieving comments.
_current_dir = os.path.dirname(__file__)
@@ -892,6 +892,10 @@ def FindCommonAnnotations(library_name, interface_name, member_name=None):
if (dart_annotations.get(key) != None):
annotations.extend(dart_annotations.get(key))
+ if (member_name and member_name.startswith('webkit') and
+ key not in renamed_html_members):
+ annotations.extend(_webkit_experimental_annotations)
+
return annotations
def FindDart2JSAnnotationsAndComments(idl_type, library_name, interface_name,

Powered by Google App Engine
This is Rietveld 408576698