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

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

Issue 12252019: Adding monitoring to a number of DOM generation scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « tools/dom/scripts/htmleventgenerator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index 309052e683d6d6466796a43adcf6d39c164f1867..2594b1e76cf1c42e88c7dd4a246d71fbed176d61 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -7,11 +7,12 @@
Dart:html APIs from the IDL database."""
import emitter
+import monitored
import os
from generator import *
from htmldartgenerator import *
-_js_custom_members = set([
+_js_custom_members = monitored.Set('systemhtml._js_custom_members', [
'ArrayBuffer.slice',
'AudioBufferSourceNode.start',
'AudioBufferSourceNode.stop',
@@ -66,12 +67,10 @@ _js_custom_members = set([
'Window.location',
'Window.open',
'Window.requestAnimationFrame',
- 'Window.webkitCancelAnimationFrame',
- 'Window.webkitRequestAnimationFrame',
'WorkerContext.indexedDB',
])
-_js_custom_constructors = set([
+_js_custom_constructors = monitored.Set('systemhtml._js_custom_constructors', [
'AudioContext',
'Blob',
'MutationObserver',
@@ -118,7 +117,8 @@ class ElementConstructorInfo(object):
info.pure_dart_constructor = True
return info
-_html_element_constructors = {
+_html_element_constructors = monitored.Dict(
+ 'systemhtml._html_element_constructors', {
'HTMLAnchorElement' :
ElementConstructorInfo(tag='a', opt_params=[('DOMString', 'href')]),
'HTMLAreaElement': 'area',
@@ -184,9 +184,10 @@ _html_element_constructors = {
'HTMLTrackElement': 'track',
'HTMLUListElement': 'ul',
'HTMLVideoElement': 'video'
-}
+})
-_svg_element_constructors = {
+_svg_element_constructors = monitored.Dict(
+ 'systemhtml._svg_element_constructors', {
'SVGAElement': 'a',
'SVGAltGlyphElement': 'altGlyph',
'SVGAnimateElement': 'animate',
@@ -252,7 +253,7 @@ _svg_element_constructors = {
'SVGUseElement': 'use',
'SVGViewElement': 'view',
'SVGVKernElement': 'vkern',
-}
+})
_element_constructors = {
'html': _html_element_constructors,
« no previous file with comments | « tools/dom/scripts/htmleventgenerator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698