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

Side by Side Diff: tools/dom/scripts/generator.py

Issue 13444007: Removing all Worker-related APIs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/html/worker_test.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 """This module provides shared functionality for systems to generate 6 """This module provides shared functionality for systems to generate
7 Dart APIs from the IDL database.""" 7 Dart APIs from the IDL database."""
8 8
9 import copy 9 import copy
10 import json 10 import json
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 Conversion('convertDartToNative_Dictionary', 'Map', 'dynamic'), 486 Conversion('convertDartToNative_Dictionary', 'Map', 'dynamic'),
487 487
488 'sequence<DOMString> set': 488 'sequence<DOMString> set':
489 Conversion('convertDartToNative_StringArray', 'List<String>', 'List'), 489 Conversion('convertDartToNative_StringArray', 'List<String>', 'List'),
490 490
491 'any set IDBObjectStore.add': _serialize_SSV, 491 'any set IDBObjectStore.add': _serialize_SSV,
492 'any set IDBObjectStore.put': _serialize_SSV, 492 'any set IDBObjectStore.put': _serialize_SSV,
493 'any set IDBCursor.update': _serialize_SSV, 493 'any set IDBCursor.update': _serialize_SSV,
494 494
495 # postMessage 495 # postMessage
496 'any set DedicatedWorkerContext.postMessage': _serialize_SSV,
497 'any set MessagePort.postMessage': _serialize_SSV, 496 'any set MessagePort.postMessage': _serialize_SSV,
498 'SerializedScriptValue set DOMWindow.postMessage': _serialize_SSV, 497 'SerializedScriptValue set DOMWindow.postMessage': _serialize_SSV,
499 'SerializedScriptValue set Worker.postMessage': _serialize_SSV,
500 498
501 # receiving message via MessageEvent 499 # receiving message via MessageEvent
502 '* get MessageEvent.data': 500 '* get MessageEvent.data':
503 Conversion('convertNativeToDart_SerializedScriptValue', 501 Conversion('convertNativeToDart_SerializedScriptValue',
504 'dynamic', 'dynamic'), 502 'dynamic', 'dynamic'),
505 503
506 '* get History.state': 504 '* get History.state':
507 Conversion('_convertNativeToDart_SerializedScriptValue', 505 Conversion('_convertNativeToDart_SerializedScriptValue',
508 'dynamic', 'dynamic'), 506 'dynamic', 'dynamic'),
509 507
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 585
588 # Methods returning Window can return a local window, or a cross-frame 586 # Methods returning Window can return a local window, or a cross-frame
589 # window (=Object) that needs wrapping. 587 # window (=Object) that needs wrapping.
590 'DOMWindow': [ 588 'DOMWindow': [
591 "@Creates('Window|=Object')", 589 "@Creates('Window|=Object')",
592 "@Returns('Window|=Object')", 590 "@Returns('Window|=Object')",
593 ], 591 ],
594 592
595 'DOMWindow.openDatabase': [ 593 'DOMWindow.openDatabase': [
596 "@Creates('SqlDatabase')", 594 "@Creates('SqlDatabase')",
597 "@Creates('SqlDatabaseSync')",
598 ], 595 ],
599 596
600 # To be in callback with the browser-created Event, we had to have called 597 # To be in callback with the browser-created Event, we had to have called
601 # addEventListener on the target, so we avoid 598 # addEventListener on the target, so we avoid
602 'Event.currentTarget': [ 599 'Event.currentTarget': [
603 "@Creates('Null')", 600 "@Creates('Null')",
604 "@Returns('EventTarget|=Object')", 601 "@Returns('EventTarget|=Object')",
605 ], 602 ],
606 603
607 # Only nodes in the DOM bubble and have target !== currentTarget. 604 # Only nodes in the DOM bubble and have target !== currentTarget.
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 'SVGFETurbulenceElement': _svg_annotations, 888 'SVGFETurbulenceElement': _svg_annotations,
892 'SVGFilterElement': _svg_annotations, 889 'SVGFilterElement': _svg_annotations,
893 'SVGForeignObjectElement': _no_ie_annotations, 890 'SVGForeignObjectElement': _no_ie_annotations,
894 'SVGSetElement': _no_ie_annotations, 891 'SVGSetElement': _no_ie_annotations,
895 'SQLTransaction': _web_sql_annotations, 892 'SQLTransaction': _web_sql_annotations,
896 'SQLTransactionSync': _web_sql_annotations, 893 'SQLTransactionSync': _web_sql_annotations,
897 'WebGLRenderingContext': _webgl_annotations, 894 'WebGLRenderingContext': _webgl_annotations,
898 'WebKitCSSMatrix': _webkit_experimental_annotations, 895 'WebKitCSSMatrix': _webkit_experimental_annotations,
899 'WebKitPoint': _webkit_experimental_annotations, 896 'WebKitPoint': _webkit_experimental_annotations,
900 'WebSocket': _all_but_ie9_annotations, 897 'WebSocket': _all_but_ie9_annotations,
901 'WorkerContext.indexedDB': _indexed_db_annotations, 898 'Worker': _all_but_ie9_annotations,
902 'WorkerContext.openDatabase': _web_sql_annotations,
903 'WorkerContext.openDatabaseSync': _web_sql_annotations,
904 'WorkerContext.webkitRequestFileSystem': _file_system_annotations,
905 'WorkerContext.webkitRequestFileSystemSync': _file_system_annotations,
906 'WorkerContext.webkitResolveLocalFileSystemSyncURL': _file_system_annotations,
907 'WorkerContext.webkitResolveLocalFileSystemURL': _file_system_annotations,
908 'XMLHttpRequest.onloadend': _all_but_ie9_annotations, 899 'XMLHttpRequest.onloadend': _all_but_ie9_annotations,
909 'XMLHttpRequest.onprogress': _all_but_ie9_annotations, 900 'XMLHttpRequest.onprogress': _all_but_ie9_annotations,
910 'XMLHttpRequest.response': _all_but_ie9_annotations, 901 'XMLHttpRequest.response': _all_but_ie9_annotations,
911 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations, 902 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations,
912 'XSLTProcessor': [ 903 'XSLTProcessor': [
913 "@SupportedBrowser(SupportedBrowser.CHROME)", 904 "@SupportedBrowser(SupportedBrowser.CHROME)",
914 "@SupportedBrowser(SupportedBrowser.FIREFOX)", 905 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
915 "@SupportedBrowser(SupportedBrowser.SAFARI)", 906 "@SupportedBrowser(SupportedBrowser.SAFARI)",
916 ], 907 ],
917 }) 908 })
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 self) 1562 self)
1572 1563
1573 if type_data.clazz == 'SVGTearOff': 1564 if type_data.clazz == 'SVGTearOff':
1574 dart_interface_name = self._renamer.RenameInterface( 1565 dart_interface_name = self._renamer.RenameInterface(
1575 self._database.GetInterface(type_name)) 1566 self._database.GetInterface(type_name))
1576 return SVGTearOffIDLTypeInfo( 1567 return SVGTearOffIDLTypeInfo(
1577 type_name, type_data, dart_interface_name, self) 1568 type_name, type_data, dart_interface_name, self)
1578 1569
1579 class_name = '%sIDLTypeInfo' % type_data.clazz 1570 class_name = '%sIDLTypeInfo' % type_data.clazz
1580 return globals()[class_name](type_name, type_data) 1571 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « tests/html/worker_test.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698