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

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

Issue 8344019: Remove createXMLHttpRequest and other 'factory' constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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
« no previous file with comments | « client/dom/scripts/dartgenerator.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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__DOMWindowWrappingImplementation__createFileReader(_this) {
36 try {
37 return __dom_wrap(new FileReader());
38 } catch (e) {
39 throw __dom_wrap_exception(e);
40 }
41 }
42
43 function native__DOMWindowWrappingImplementation__createWebKitCSSMatrix(_this) {
44 try {
45 return __dom_wrap(new WebKitCSSMatrix());
46 } catch (e) {
47 throw __dom_wrap_exception(e);
48 }
49 }
50
51 function native__DOMWindowWrappingImplementation__createWebKitCSSMatrix_2(_this, cssValue) {
52 try {
53 return __dom_wrap(new WebKitCSSMatrix(__dom_unwrap(cssValue)));
54 } catch (e) {
55 throw __dom_wrap_exception(e);
56 }
57 }
58
59 function native__DOMWindowWrappingImplementation__createWebKitPoint(_this, x, y) {
60 try {
61 return __dom_wrap(new WebKitPoint(x, y));
62 } catch (e) {
63 throw __dom_wrap_exception(e);
64 }
65 }
66
67 function native__DOMWindowWrappingImplementation__createXMLHttpRequest(_this) {
68 try {
69 return __dom_wrap(new XMLHttpRequest());
70 } catch (e) {
71 throw __dom_wrap_exception(e);
72 }
73 }
74
75 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle(_t his, color_OR_gradient_OR_pattern) { 35 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle(_t his, color_OR_gradient_OR_pattern) {
76 try { 36 try {
77 _this.$dom.fillStyle = __dom_unwrap(color_OR_gradient_OR_pattern); 37 _this.$dom.fillStyle = __dom_unwrap(color_OR_gradient_OR_pattern);
78 } catch (e) { 38 } catch (e) {
79 throw __dom_wrap_exception(e); 39 throw __dom_wrap_exception(e);
80 } 40 }
81 } 41 }
82 42
83 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle_2( _this, color_OR_gradient_OR_pattern) { 43 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle_2( _this, color_OR_gradient_OR_pattern) {
84 try { 44 try {
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 function native__NativeDomGlobalProperties_getWindow() { 291 function native__NativeDomGlobalProperties_getWindow() {
332 // TODO: Should the window be obtained from an isolate? 292 // TODO: Should the window be obtained from an isolate?
333 return __dom_wrap(window); 293 return __dom_wrap(window);
334 } 294 }
335 295
336 // Declared in src/GlobalProperties.dart 296 // Declared in src/GlobalProperties.dart
337 function native__NativeDomGlobalProperties_getDocument() { 297 function native__NativeDomGlobalProperties_getDocument() {
338 // TODO: Should the window be obtained from an isolate? 298 // TODO: Should the window be obtained from an isolate?
339 return __dom_wrap(window.document); 299 return __dom_wrap(window.document);
340 } 300 }
OLDNEW
« no previous file with comments | « client/dom/scripts/dartgenerator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698