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

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 90d2610856e7cd158934610b771c677fd00cee79..8a56843d8528befe317c11223b8940e2b1653a72 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -58,6 +58,9 @@ _js_custom_members = monitored.Set('systemhtml._js_custom_members', [
'DOMException.name',
'HTMLTableElement.createTBody',
'IDBDatabase.transaction',
+ 'IDBDatabase.transactionList',
+ 'IDBDatabase.transactionString',
+ 'IDBDatabase.transactionStringList',
'KeyboardEvent.initKeyboardEvent',
'Location.origin',
'MouseEvent.offsetX',
@@ -66,6 +69,9 @@ _js_custom_members = monitored.Set('systemhtml._js_custom_members', [
'Navigator.webkitGetUserMedia',
'ScriptProcessorNode._setEventListener',
'URL.createObjectURL',
+ 'URL.createObjectUrlFromSource',
+ 'URL.createObjectUrlFromStream',
+ 'URL.createObjectUrlFromBlob',
'URL.revokeObjectURL',
'WheelEvent.deltaMode',
'WheelEvent.wheelDeltaX',
@@ -955,7 +961,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