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

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

Issue 23829002: Checkpoint in changes to match push (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: We were missing onReadyStateChange Created 7 years, 4 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/systemhtml.py ('k') | tools/dom/src/CrossFrameTypes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemnative.py
diff --git a/tools/dom/scripts/systemnative.py b/tools/dom/scripts/systemnative.py
index 1b088104dbdc801709a285757e9e548a58f8128e..d36e0cd6b79e6a3ab0e805db66792421e55c15e0 100644
--- a/tools/dom/scripts/systemnative.py
+++ b/tools/dom/scripts/systemnative.py
@@ -37,6 +37,7 @@ _cpp_callback_map = {
('DOMWindow', 'btoa'): 'DOMWindowBase64',
('DOMWindow', 'clearTimeout'): 'DOMWindowTimers',
('DOMWindow', 'clearInterval'): 'DOMWindowTimers',
+ ('DOMWindow', 'createImageBitmap'): 'ImageBitmapFactories',
('HTMLInputElement', 'webkitEntries'): 'HTMLInputElementFileSystem',
('Navigator', 'doNotTrack'): 'NavigatorDoNotTrack',
('Navigator', 'geolocation'): 'NavigatorGeolocation',
@@ -48,6 +49,11 @@ _cpp_callback_map = {
('Navigator', 'webkitGetGamepads'): 'NavigatorGamepad',
('Navigator', 'requestMIDIAccess'): 'NavigatorWebMIDI',
('Navigator', 'vibrate'): 'NavigatorVibration',
+ ('Navigator', 'appName'): 'NavigatorID',
+ ('Navigator', 'appVersion'): 'NavigatorID',
+ ('Navigator', 'platform'): 'NavigatorID',
+ ('Navigator', 'userAgent'): 'NavigatorID',
+ ('Navigator', 'onLine'): 'NavigatorOnLine',
('WorkerGlobalScope', 'crypto'): 'WorkerGlobalScopeCrypto',
('WorkerGlobalScope', 'indexedDB'): 'WorkerGlobalScopeIndexedDatabase',
('WorkerGlobalScope', 'webkitNotifications'): 'WorkerGlobalScopeNotifications',
@@ -64,6 +70,10 @@ _cpp_callback_map = {
('WorkerGlobalScope', 'clearInterval'): 'DOMWindowTimers',
}
+_cpp_import_map = {
+ 'ImageBitmapFactories' : 'modules/imagebitmap/ImageBitmapFactories'
+}
+
_cpp_overloaded_callback_map = {
('DOMURL', 'createObjectUrlFromSourceCallback'): 'URLMediaSource',
('DOMURL', 'createObjectUrlFromStreamCallback'): 'URLMediaStream',
@@ -81,7 +91,11 @@ def _GetCPPPartialNames(interface):
for (type, member) in _cpp_callback_map.keys():
if type not in _cpp_partial_map:
_cpp_partial_map[type] = set([])
- _cpp_partial_map[type].add(_cpp_callback_map[(type, member)])
+
+ name_with_path = _cpp_callback_map[(type, member)]
+ if name_with_path in _cpp_import_map:
+ name_with_path = _cpp_import_map[name_with_path]
+ _cpp_partial_map[type].add(name_with_path)
for (type, member) in _cpp_overloaded_callback_map.keys():
if type not in _cpp_partial_map:
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/src/CrossFrameTypes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698