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

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

Issue 12226134: Fixing Indexed DB's CursorWithValue.value (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 Conversion('_convertNativeToDart_SerializedScriptValue', 469 Conversion('_convertNativeToDart_SerializedScriptValue',
470 'dynamic', 'dynamic'), 470 'dynamic', 'dynamic'),
471 471
472 '* get PopStateEvent.state': 472 '* get PopStateEvent.state':
473 Conversion('convertNativeToDart_SerializedScriptValue', 473 Conversion('convertNativeToDart_SerializedScriptValue',
474 'dynamic', 'dynamic'), 474 'dynamic', 'dynamic'),
475 475
476 # IDBAny is problematic. Some uses are just a union of other IDB types, 476 # IDBAny is problematic. Some uses are just a union of other IDB types,
477 # which need no conversion.. Others include data values which require 477 # which need no conversion.. Others include data values which require
478 # serialized script value processing. 478 # serialized script value processing.
479 'IDBAny get IDBCursorWithValue.value': 479 '* get IDBCursorWithValue.value':
sra1 2013/02/13 18:41:42 Perhaps this map should be monitored.
480 Conversion('_convertNativeToDart_IDBAny', 'dynamic', 'dynamic'), 480 Conversion('_convertNativeToDart_IDBAny', 'dynamic', 'dynamic'),
481 481
482 # This is problematic. The result property of IDBRequest is used for 482 # This is problematic. The result property of IDBRequest is used for
483 # all requests. Read requests like IDBDataStore.getObject need 483 # all requests. Read requests like IDBDataStore.getObject need
484 # conversion, but other requests like opening a database return 484 # conversion, but other requests like opening a database return
485 # something that does not need conversion. 485 # something that does not need conversion.
486 'IDBAny get IDBRequest.result': 486 'IDBAny get IDBRequest.result':
487 Conversion('_convertNativeToDart_IDBAny', 'dynamic', 'dynamic'), 487 Conversion('_convertNativeToDart_IDBAny', 'dynamic', 'dynamic'),
488 488
489 # "source: On getting, returns the IDBObjectStore or IDBIndex that the 489 # "source: On getting, returns the IDBObjectStore or IDBIndex that the
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 self) 1499 self)
1500 1500
1501 if type_data.clazz == 'SVGTearOff': 1501 if type_data.clazz == 'SVGTearOff':
1502 dart_interface_name = self._renamer.RenameInterface( 1502 dart_interface_name = self._renamer.RenameInterface(
1503 self._database.GetInterface(type_name)) 1503 self._database.GetInterface(type_name))
1504 return SVGTearOffIDLTypeInfo( 1504 return SVGTearOffIDLTypeInfo(
1505 type_name, type_data, dart_interface_name, self) 1505 type_name, type_data, dart_interface_name, self)
1506 1506
1507 class_name = '%sIDLTypeInfo' % type_data.clazz 1507 class_name = '%sIDLTypeInfo' % type_data.clazz
1508 return globals()[class_name](type_name, type_data) 1508 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « tests/html/indexeddb_4_test.dart ('k') | tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698