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

Side by Side Diff: client/dom/generated/wrapping_dom.js

Issue 8591026: Roll DOM APIs forward on IDL & update Frog DOM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change window and document to getters Created 9 years, 1 month 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // DO NOT EDIT 5 // DO NOT EDIT
6 // Auto-generated Dart DOM implementation. 6 // Auto-generated Dart DOM implementation.
7 7
8 8
9 function native__AbstractWorkerWrappingImplementation__get__AbstractWorker_onerr or(_this) { 9 function native__AbstractWorkerWrappingImplementation__get__AbstractWorker_onerr or(_this) {
10 try { 10 try {
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 } 679 }
680 680
681 function native__CanvasRenderingContextWrappingImplementation__get__CanvasRender ingContext_canvas(_this) { 681 function native__CanvasRenderingContextWrappingImplementation__get__CanvasRender ingContext_canvas(_this) {
682 try { 682 try {
683 return __dom_wrap(_this.$dom.canvas); 683 return __dom_wrap(_this.$dom.canvas);
684 } catch (e) { 684 } catch (e) {
685 throw __dom_wrap_exception(e); 685 throw __dom_wrap_exception(e);
686 } 686 }
687 } 687 }
688 688
689 function native__CanvasRenderingContext2DWrappingImplementation__get__CanvasRend eringContext2D_fillStyle(_this) {
690 try {
691 return __dom_wrap(_this.$dom.fillStyle);
692 } catch (e) {
693 throw __dom_wrap_exception(e);
694 }
695 }
696
697 function native__CanvasRenderingContext2DWrappingImplementation__set__CanvasRend eringContext2D_fillStyle(_this, value) {
698 try {
699 _this.$dom.fillStyle = __dom_unwrap(value);
700 } catch (e) {
701 throw __dom_wrap_exception(e);
702 }
703 }
704
689 function native__CanvasRenderingContext2DWrappingImplementation__get__CanvasRend eringContext2D_font(_this) { 705 function native__CanvasRenderingContext2DWrappingImplementation__get__CanvasRend eringContext2D_font(_this) {
690 try { 706 try {
691 return __dom_wrap(_this.$dom.font); 707 return __dom_wrap(_this.$dom.font);
692 } catch (e) { 708 } catch (e) {
693 throw __dom_wrap_exception(e); 709 throw __dom_wrap_exception(e);
694 } 710 }
695 } 711 }
696 712
697 function native__CanvasRenderingContext2DWrappingImplementation__set__CanvasRend eringContext2D_font(_this, value) { 713 function native__CanvasRenderingContext2DWrappingImplementation__set__CanvasRend eringContext2D_font(_this, value) {
698 try { 714 try {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 } 871 }
856 872
857 function native__CanvasRenderingContext2DWrappingImplementation__set__CanvasRend eringContext2D_shadowOffsetY(_this, value) { 873 function native__CanvasRenderingContext2DWrappingImplementation__set__CanvasRend eringContext2D_shadowOffsetY(_this, value) {
858 try { 874 try {
859 _this.$dom.shadowOffsetY = __dom_unwrap(value); 875 _this.$dom.shadowOffsetY = __dom_unwrap(value);
860 } catch (e) { 876 } catch (e) {
861 throw __dom_wrap_exception(e); 877 throw __dom_wrap_exception(e);
862 } 878 }
863 } 879 }
864 880
881 function native__CanvasRenderingContext2DWrappingImplementation__get__CanvasRend eringContext2D_strokeStyle(_this) {
882 try {
883 return __dom_wrap(_this.$dom.strokeStyle);
884 } catch (e) {
885 throw __dom_wrap_exception(e);
886 }
887 }
888
889 function native__CanvasRenderingContext2DWrappingImplementation__set__CanvasRend eringContext2D_strokeStyle(_this, value) {
890 try {
891 _this.$dom.strokeStyle = __dom_unwrap(value);
892 } catch (e) {
893 throw __dom_wrap_exception(e);
894 }
895 }
896
865 function native__CanvasRenderingContext2DWrappingImplementation__get__CanvasRend eringContext2D_textAlign(_this) { 897 function native__CanvasRenderingContext2DWrappingImplementation__get__CanvasRend eringContext2D_textAlign(_this) {
866 try { 898 try {
867 return __dom_wrap(_this.$dom.textAlign); 899 return __dom_wrap(_this.$dom.textAlign);
868 } catch (e) { 900 } catch (e) {
869 throw __dom_wrap_exception(e); 901 throw __dom_wrap_exception(e);
870 } 902 }
871 } 903 }
872 904
873 function native__CanvasRenderingContext2DWrappingImplementation__set__CanvasRend eringContext2D_textAlign(_this, value) { 905 function native__CanvasRenderingContext2DWrappingImplementation__set__CanvasRend eringContext2D_textAlign(_this, value) {
874 try { 906 try {
(...skipping 15604 matching lines...) Expand 10 before | Expand all | Expand 10 after
16479 } 16511 }
16480 16512
16481 function native__HTMLSelectElementWrappingImplementation__namedItem(_this, name) { 16513 function native__HTMLSelectElementWrappingImplementation__namedItem(_this, name) {
16482 try { 16514 try {
16483 return __dom_wrap(_this.$dom.namedItem(__dom_unwrap(name))); 16515 return __dom_wrap(_this.$dom.namedItem(__dom_unwrap(name)));
16484 } catch (e) { 16516 } catch (e) {
16485 throw __dom_wrap_exception(e); 16517 throw __dom_wrap_exception(e);
16486 } 16518 }
16487 } 16519 }
16488 16520
16489 function native__HTMLSelectElementWrappingImplementation__remove(_this) { 16521 function native__HTMLSelectElementWrappingImplementation__remove(_this, index_OR _option) {
16490 try { 16522 try {
16491 return __dom_wrap(_this.$dom.remove()); 16523 return __dom_wrap(_this.$dom.remove(__dom_unwrap(index_OR_option)));
16492 } catch (e) { 16524 } catch (e) {
16493 throw __dom_wrap_exception(e); 16525 throw __dom_wrap_exception(e);
16494 } 16526 }
16527 }
16528
16529 function native__HTMLSelectElementWrappingImplementation__remove_2(_this, index_ OR_option) {
16530 try {
16531 return __dom_wrap(_this.$dom.remove(__dom_unwrap(index_OR_option)));
16532 } catch (e) {
16533 throw __dom_wrap_exception(e);
16534 }
16495 } 16535 }
16496 16536
16497 function native__HTMLSelectElementWrappingImplementation__setCustomValidity(_thi s, error) { 16537 function native__HTMLSelectElementWrappingImplementation__setCustomValidity(_thi s, error) {
16498 try { 16538 try {
16499 return __dom_wrap(_this.$dom.setCustomValidity(__dom_unwrap(error))); 16539 return __dom_wrap(_this.$dom.setCustomValidity(__dom_unwrap(error)));
16500 } catch (e) { 16540 } catch (e) {
16501 throw __dom_wrap_exception(e); 16541 throw __dom_wrap_exception(e);
16502 } 16542 }
16503 } 16543 }
16504 16544
(...skipping 10911 matching lines...) Expand 10 before | Expand all | Expand 10 after
27416 function native__NativeDomGlobalProperties_getWindow() { 27456 function native__NativeDomGlobalProperties_getWindow() {
27417 // TODO: Should the window be obtained from an isolate? 27457 // TODO: Should the window be obtained from an isolate?
27418 return __dom_wrap(window); 27458 return __dom_wrap(window);
27419 } 27459 }
27420 27460
27421 // Declared in src/GlobalProperties.dart 27461 // Declared in src/GlobalProperties.dart
27422 function native__NativeDomGlobalProperties_getDocument() { 27462 function native__NativeDomGlobalProperties_getDocument() {
27423 // TODO: Should the window be obtained from an isolate? 27463 // TODO: Should the window be obtained from an isolate?
27424 return __dom_wrap(window.document); 27464 return __dom_wrap(window.document);
27425 } 27465 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698