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

Side by Side Diff: tools/dom/src/native_DOMImplementation.dart

Issue 27358002: Generate a class table of all the IDL classes in the database. This table is used (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of html; 5 part of html;
6 6
7 class _ConsoleVariables { 7 class _ConsoleVariables {
8 Map<String, Object> _data = new Map<String, Object>(); 8 Map<String, Object> _data = new Map<String, Object>();
9 9
10 /** 10 /**
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 } 416 }
417 417
418 static void _register(Document document, String tag, Type customType, 418 static void _register(Document document, String tag, Type customType,
419 String extendsTagName) native "Utils_register"; 419 String extendsTagName) native "Utils_register";
420 420
421 static Element createElement(Document document, String tagName) native "Utils_ createElement"; 421 static Element createElement(Document document, String tagName) native "Utils_ createElement";
422 422
423 static void initializeCustomElement(HtmlElement element) native "Utils_initial izeCustomElement"; 423 static void initializeCustomElement(HtmlElement element) native "Utils_initial izeCustomElement";
424 } 424 }
425 425
426 class _DOMWindowCrossFrame extends NativeFieldWrapperClass1 implements 426 class _DOMWindowCrossFrame extends NativeFieldWrapperClass2 implements
427 WindowBase { 427 WindowBase {
428 _DOMWindowCrossFrame.internal(); 428 _DOMWindowCrossFrame.internal();
429 429
430 // Fields. 430 // Fields.
431 HistoryBase get history native "Window_history_cross_frame_Getter"; 431 HistoryBase get history native "Window_history_cross_frame_Getter";
432 LocationBase get location native "Window_location_cross_frame_Getter"; 432 LocationBase get location native "Window_location_cross_frame_Getter";
433 bool get closed native "Window_closed_Getter"; 433 bool get closed native "Window_closed_Getter";
434 int get length native "Window_length_Getter"; 434 int get length native "Window_length_Getter";
435 WindowBase get opener native "Window_opener_Getter"; 435 WindowBase get opener native "Window_opener_Getter";
436 WindowBase get parent native "Window_parent_Getter"; 436 WindowBase get parent native "Window_parent_Getter";
437 WindowBase get top native "Window_top_Getter"; 437 WindowBase get top native "Window_top_Getter";
438 438
439 // Methods. 439 // Methods.
440 void close() native "Window_close_Callback"; 440 void close() native "Window_close_Callback";
441 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) native "Window_postMessage_Callback"; 441 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) native "Window_postMessage_Callback";
442 442
443 // Implementation support. 443 // Implementation support.
444 String get typeName => "Window"; 444 String get typeName => "Window";
445 } 445 }
446 446
447 class _HistoryCrossFrame extends NativeFieldWrapperClass1 implements HistoryBase { 447 class _HistoryCrossFrame extends NativeFieldWrapperClass2 implements HistoryBase {
448 _HistoryCrossFrame.internal(); 448 _HistoryCrossFrame.internal();
449 449
450 // Methods. 450 // Methods.
451 void back() native "History_back_Callback"; 451 void back() native "History_back_Callback";
452 void forward() native "History_forward_Callback"; 452 void forward() native "History_forward_Callback";
453 void go(int distance) native "History_go_Callback"; 453 void go(int distance) native "History_go_Callback";
454 454
455 // Implementation support. 455 // Implementation support.
456 String get typeName => "History"; 456 String get typeName => "History";
457 } 457 }
458 458
459 class _LocationCrossFrame extends NativeFieldWrapperClass1 implements LocationBa se { 459 class _LocationCrossFrame extends NativeFieldWrapperClass2 implements LocationBa se {
460 _LocationCrossFrame.internal(); 460 _LocationCrossFrame.internal();
461 461
462 // Fields. 462 // Fields.
463 void set href(String) native "Location_href_Setter"; 463 void set href(String) native "Location_href_Setter";
464 464
465 // Implementation support. 465 // Implementation support.
466 String get typeName => "Location"; 466 String get typeName => "Location";
467 } 467 }
468 468
469 class _DOMStringMap extends NativeFieldWrapperClass1 implements Map<String, Stri ng> { 469 class _DOMStringMap extends NativeFieldWrapperClass2 implements Map<String, Stri ng> {
470 _DOMStringMap.internal(); 470 _DOMStringMap.internal();
471 471
472 bool containsValue(String value) => Maps.containsValue(this, value); 472 bool containsValue(String value) => Maps.containsValue(this, value);
473 bool containsKey(String key) native "DOMStringMap_containsKey_Callback"; 473 bool containsKey(String key) native "DOMStringMap_containsKey_Callback";
474 String operator [](String key) native "DOMStringMap_item_Callback"; 474 String operator [](String key) native "DOMStringMap_item_Callback";
475 void operator []=(String key, String value) native "DOMStringMap_setItem_Callb ack"; 475 void operator []=(String key, String value) native "DOMStringMap_setItem_Callb ack";
476 String putIfAbsent(String key, String ifAbsent()) => Maps.putIfAbsent(this, ke y, ifAbsent); 476 String putIfAbsent(String key, String ifAbsent()) => Maps.putIfAbsent(this, ke y, ifAbsent);
477 String remove(String key) native "DOMStringMap_remove_Callback"; 477 String remove(String key) native "DOMStringMap_remove_Callback";
478 void clear() => Maps.clear(this); 478 void clear() => Maps.clear(this);
479 void forEach(void f(String key, String value)) => Maps.forEach(this, f); 479 void forEach(void f(String key, String value)) => Maps.forEach(this, f);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 _scheduleImmediateHelper._schedule(callback); 567 _scheduleImmediateHelper._schedule(callback);
568 }; 568 };
569 569
570 get _pureIsolateScheduleImmediateClosure => ((void callback()) => 570 get _pureIsolateScheduleImmediateClosure => ((void callback()) =>
571 throw new UnimplementedError("scheduleMicrotask in background isolates " 571 throw new UnimplementedError("scheduleMicrotask in background isolates "
572 "are not supported in the browser")); 572 "are not supported in the browser"));
573 573
574 void _initializeCustomElement(Element e) { 574 void _initializeCustomElement(Element e) {
575 _Utils.initializeCustomElement(e); 575 _Utils.initializeCustomElement(e);
576 } 576 }
OLDNEW
« tools/dom/scripts/systemnative.py ('K') | « tools/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698