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

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
« no previous file with comments | « tools/dom/scripts/monitored.py ('k') | tools/dom/templates/html/dart2js/impl_URL.darttemplate » ('j') | 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 90d2610856e7cd158934610b771c677fd00cee79..16d810981055a6ff4e05464bef8580fac31c4efc 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.transactionStore',
+ 'IDBDatabase.transactionStores',
'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]):
« no previous file with comments | « tools/dom/scripts/monitored.py ('k') | tools/dom/templates/html/dart2js/impl_URL.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698