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

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

Issue 16494002: Expand overloaded methods and optional parameters in the html library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: tools/dom/scripts/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index cc0d179dc163b9e85eb2f830a80531dbd56d11db..088781982099214fc22b72fb5a072951ce0755d3 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -53,6 +53,8 @@ _js_custom_members = monitored.Set('systemhtml._js_custom_members', [
'DOMException.name',
'HTMLTableElement.createTBody',
'IDBDatabase.transaction',
+ 'IDBDatabase.transactionList',
+ 'IDBDatabase.transactionStringList',
'KeyboardEvent.initKeyboardEvent',
'Location.origin',
'MouseEvent.offsetX',
@@ -61,6 +63,8 @@ _js_custom_members = monitored.Set('systemhtml._js_custom_members', [
'Navigator.webkitGetUserMedia',
'ScriptProcessorNode._setEventListener',
'URL.createObjectURL',
+ 'URL.createObjectUrlFromStream',
+ 'URL.createObjectUrlFromBlob',
'URL.revokeObjectURL',
'WheelEvent.deltaMode',
'WheelEvent.wheelDeltaX',
@@ -950,7 +954,8 @@ class Dart2JSBackend(HtmlDartGenerator):
def GenerateCall(
stmts_emitter, call_emitter, version, operation, argument_count):
- target = '_%s_%d' % (html_name, version);
+ target = '_%s_%d' % (
+ html_name[1:] if html_name.startswith('_') else html_name, version);
arguments = []
target_parameters = []
for position, arg in enumerate(operation.arguments[:argument_count]):

Powered by Google App Engine
This is Rietveld 408576698