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

Side by Side Diff: client/dom/scripts/template_wrapping_dom.js

Issue 8595020: Cleanup old code and refresh on IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 $!CODE 8 $!CODE
9 9
10 function __dom_native_TimeoutHander_method(_this, callback, timeout, operation) { 10 function __dom_native_TimeoutHander_method(_this, callback, timeout, operation) {
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 26
27 function native__WorkerContextWrappingImplementation__setInterval(_this, callbac k, timeout) { 27 function native__WorkerContextWrappingImplementation__setInterval(_this, callbac k, timeout) {
28 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setInterva l'); 28 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setInterva l');
29 } 29 }
30 30
31 function native__WorkerContextWrappingImplementation__setTimeout(_this, callback , timeout) { 31 function native__WorkerContextWrappingImplementation__setTimeout(_this, callback , timeout) {
32 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setTimeout '); 32 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setTimeout ');
33 } 33 }
34 34
35 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle(_t his, color_OR_gradient_OR_pattern) {
36 try {
37 _this.$dom.fillStyle = __dom_unwrap(color_OR_gradient_OR_pattern);
38 } catch (e) {
39 throw __dom_wrap_exception(e);
40 }
41 }
42
43 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle_2( _this, color_OR_gradient_OR_pattern) {
44 try {
45 _this.$dom.fillStyle = __dom_unwrap(color_OR_gradient_OR_pattern);
46 } catch (e) {
47 throw __dom_wrap_exception(e);
48 }
49 }
50
51 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle_3( _this, color_OR_gradient_OR_pattern) {
52 try {
53 _this.$dom.fillStyle = __dom_unwrap(color_OR_gradient_OR_pattern);
54 } catch (e) {
55 throw __dom_wrap_exception(e);
56 }
57 }
58
59 function native__CanvasRenderingContext2DWrappingImplementation__setStrokeStyle( _this, color_OR_gradient_OR_pattern) {
60 try {
61 _this.$dom.strokeStyle = __dom_unwrap(color_OR_gradient_OR_pattern);
62 } catch (e) {
63 throw __dom_wrap_exception(e);
64 }
65 }
66
67 function native__CanvasRenderingContext2DWrappingImplementation__setStrokeStyle_ 2(_this, color_OR_gradient_OR_pattern) {
68 try {
69 _this.$dom.strokeStyle = __dom_unwrap(color_OR_gradient_OR_pattern);
70 } catch (e) {
71 throw __dom_wrap_exception(e);
72 }
73 }
74
75 function native__CanvasRenderingContext2DWrappingImplementation__setStrokeStyle_ 3(_this, color_OR_gradient_OR_pattern) {
76 try {
77 _this.$dom.strokeStyle = __dom_unwrap(color_OR_gradient_OR_pattern);
78 } catch (e) {
79 throw __dom_wrap_exception(e);
80 }
81 }
82
83 function native__DOMWindowWrappingImplementation__get_localStorage(_this) { 35 function native__DOMWindowWrappingImplementation__get_localStorage(_this) {
84 var domWindow = _this.$dom; 36 var domWindow = _this.$dom;
85 try { 37 try {
86 var isolatetoken = __dom_isolate_token(); 38 var isolatetoken = __dom_isolate_token();
87 var wrapper = __dom_get_cached('dart_storage', domWindow, isolatetoken); 39 var wrapper = __dom_get_cached('dart_storage', domWindow, isolatetoken);
88 if (wrapper) return wrapper; 40 if (wrapper) return wrapper;
89 wrapper = native__StorageWrappingImplementation_create__StorageWrappingImple mentation(); 41 wrapper = native__StorageWrappingImplementation_create__StorageWrappingImple mentation();
90 wrapper.$dom = domWindow.localStorage; 42 wrapper.$dom = domWindow.localStorage;
91 __dom_set_cached('dart_storage', domWindow, isolatetoken, wrapper) 43 __dom_set_cached('dart_storage', domWindow, isolatetoken, wrapper)
92 return wrapper; 44 return wrapper;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 function native__NativeDomGlobalProperties_getWindow() { 252 function native__NativeDomGlobalProperties_getWindow() {
301 // TODO: Should the window be obtained from an isolate? 253 // TODO: Should the window be obtained from an isolate?
302 return __dom_wrap(window); 254 return __dom_wrap(window);
303 } 255 }
304 256
305 // Declared in src/GlobalProperties.dart 257 // Declared in src/GlobalProperties.dart
306 function native__NativeDomGlobalProperties_getDocument() { 258 function native__NativeDomGlobalProperties_getDocument() {
307 // TODO: Should the window be obtained from an isolate? 259 // TODO: Should the window be obtained from an isolate?
308 return __dom_wrap(window.document); 260 return __dom_wrap(window.document);
309 } 261 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698