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

Side by Side Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Issue 12252019: Adding monitoring to a number of DOM generation scripts. (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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library dart.dom.indexed_db; 1 library dart.dom.indexed_db;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:html_common'; 5 import 'dart:html_common';
6 import 'dart:_js_helper' show Creates, Returns, JSName, Null; 6 import 'dart:_js_helper' show Creates, Returns, JSName, Null;
7 import 'dart:_foreign_helper' show JS; 7 import 'dart:_foreign_helper' show JS;
8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9 // for details. All rights reserved. Use of this source code is governed by a 9 // for details. All rights reserved. Use of this source code is governed by a
10 // BSD-style license that can be found in the LICENSE file. 10 // BSD-style license that can be found in the LICENSE file.
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 Request clear() native; 673 Request clear() native;
674 674
675 @DomName('IDBObjectStore.count') 675 @DomName('IDBObjectStore.count')
676 @DocsEditable 676 @DocsEditable
677 Request count([key_OR_range]) native; 677 Request count([key_OR_range]) native;
678 678
679 @DomName('IDBObjectStore.createIndex') 679 @DomName('IDBObjectStore.createIndex')
680 @DocsEditable 680 @DocsEditable
681 Index createIndex(String name, keyPath, [Map options]) { 681 Index createIndex(String name, keyPath, [Map options]) {
682 if ((keyPath is List<String> || keyPath == null) && !?options) { 682 if ((keyPath is List<String> || keyPath == null) && !?options) {
683 return _createIndex_1(name, keyPath); 683 List keyPath_1 = convertDartToNative_StringArray(keyPath);
684 return _createIndex_1(name, keyPath_1);
684 } 685 }
685 if ((keyPath is List<String> || keyPath == null)) { 686 if ((keyPath is List<String> || keyPath == null)) {
686 var options_1 = convertDartToNative_Dictionary(options); 687 List keyPath_2 = convertDartToNative_StringArray(keyPath);
687 return _createIndex_2(name, keyPath, options_1); 688 var options_3 = convertDartToNative_Dictionary(options);
689 return _createIndex_2(name, keyPath_2, options_3);
688 } 690 }
689 if ((keyPath is String || keyPath == null) && !?options) { 691 if ((keyPath is String || keyPath == null) && !?options) {
690 return _createIndex_3(name, keyPath); 692 return _createIndex_3(name, keyPath);
691 } 693 }
692 if ((keyPath is String || keyPath == null)) { 694 if ((keyPath is String || keyPath == null)) {
693 var options_2 = convertDartToNative_Dictionary(options); 695 var options_4 = convertDartToNative_Dictionary(options);
694 return _createIndex_4(name, keyPath, options_2); 696 return _createIndex_4(name, keyPath, options_4);
695 } 697 }
696 throw new ArgumentError("Incorrect number or type of arguments"); 698 throw new ArgumentError("Incorrect number or type of arguments");
697 } 699 }
698 @JSName('createIndex') 700 @JSName('createIndex')
699 @DomName('IDBObjectStore.createIndex') 701 @DomName('IDBObjectStore.createIndex')
700 @DocsEditable 702 @DocsEditable
701 Index _createIndex_1(name, List<String> keyPath) native; 703 Index _createIndex_1(name, List keyPath) native;
702 @JSName('createIndex') 704 @JSName('createIndex')
703 @DomName('IDBObjectStore.createIndex') 705 @DomName('IDBObjectStore.createIndex')
704 @DocsEditable 706 @DocsEditable
705 Index _createIndex_2(name, List<String> keyPath, options) native; 707 Index _createIndex_2(name, List keyPath, options) native;
706 @JSName('createIndex') 708 @JSName('createIndex')
707 @DomName('IDBObjectStore.createIndex') 709 @DomName('IDBObjectStore.createIndex')
708 @DocsEditable 710 @DocsEditable
709 Index _createIndex_3(name, String keyPath) native; 711 Index _createIndex_3(name, String keyPath) native;
710 @JSName('createIndex') 712 @JSName('createIndex')
711 @DomName('IDBObjectStore.createIndex') 713 @DomName('IDBObjectStore.createIndex')
712 @DocsEditable 714 @DocsEditable
713 Index _createIndex_4(name, String keyPath, options) native; 715 Index _createIndex_4(name, String keyPath, options) native;
714 716
715 @DomName('IDBObjectStore.delete') 717 @DomName('IDBObjectStore.delete')
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 } 1017 }
1016 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1017 // for details. All rights reserved. Use of this source code is governed by a 1019 // for details. All rights reserved. Use of this source code is governed by a
1018 // BSD-style license that can be found in the LICENSE file. 1020 // BSD-style license that can be found in the LICENSE file.
1019 1021
1020 1022
1021 @DocsEditable 1023 @DocsEditable
1022 @DomName('IDBAny') 1024 @DomName('IDBAny')
1023 class _IDBAny native "*IDBAny" { 1025 class _IDBAny native "*IDBAny" {
1024 } 1026 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698