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

Side by Side Diff: client/dom/frog/frog_dom.dart

Issue 8879044: Work-around Frog codegen bug where Window is derived from native DOMWindow. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | « no previous file | client/dom/frog_dom.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('dom'); 1 #library('dom');
2 2
3 #native('frog_dom.js'); 3 #native('frog_dom.js');
4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
5 // for details. All rights reserved. Use of this source code is governed by a 5 // for details. All rights reserved. Use of this source code is governed by a
6 // BSD-style license that can be found in the LICENSE file. 6 // BSD-style license that can be found in the LICENSE file.
7 7
8 // DO NOT EDIT 8 // DO NOT EDIT
9 // Auto-generated Dart DOM library. 9 // Auto-generated Dart DOM library.
10 10
11 11
12 12
13 // #source('src/_FactoryProviders.dart'); 13 // #source('src/_FactoryProviders.dart');
14 14
15 // TODO(jmesserly): We need to be smarter about inheriting from a hidden native 15 // TODO(jmesserly): 'native' here is aWork-around for Frog bug. Frog needs to
16 // type (in this case DOMWindow) 16 // be smarter about inheriting from a hidden native type (in this case
17 // DOMWindow)
17 class Window extends DOMWindow native "*Window" {} 18 class Window extends DOMWindow native "*Window" {}
18 DOMWindow get window() native "return window;"; 19 DOMWindow get window() native "return window;";
19 // TODO(vsm): Revert to Dart method when 508 is fixed. 20 // TODO(vsm): Revert to Dart method when 508 is fixed.
20 HTMLDocument get document() native "return window.document;"; 21 HTMLDocument get document() native "return window.document;";
21 22
22 class AbstractWorker native "*AbstractWorker" { 23 class AbstractWorker native "*AbstractWorker" {
23 24
24 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 25 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
25 26
26 bool dispatchEvent(Event evt) native; 27 bool dispatchEvent(Event evt) native;
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 class Comment extends CharacterData native "*Comment" { 830 class Comment extends CharacterData native "*Comment" {
830 } 831 }
831 832
832 class CompositionEvent extends UIEvent native "*CompositionEvent" { 833 class CompositionEvent extends UIEvent native "*CompositionEvent" {
833 834
834 String data; 835 String data;
835 836
836 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, DOMWindow viewArg, String dataArg) native; 837 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, DOMWindow viewArg, String dataArg) native;
837 } 838 }
838 839
839 class Console native "=console" { 840 class Console native "=(typeof console == 'undefined' ? {} : console)" {
840 841
841 MemoryInfo memory; 842 MemoryInfo memory;
842 843
843 void assert(bool condition) native; 844 void assert(bool condition) native;
844 845
845 void count() native; 846 void count() native;
846 847
847 void debug(Object arg) native; 848 void debug(Object arg) native;
848 849
849 void dir() native; 850 void dir() native;
(...skipping 2360 matching lines...) Expand 10 before | Expand all | Expand 10 after
3210 3211
3211 int vspace; 3212 int vspace;
3212 3213
3213 String width; 3214 String width;
3214 3215
3215 void start() native; 3216 void start() native;
3216 3217
3217 void stop() native; 3218 void stop() native;
3218 } 3219 }
3219 3220
3220 // TODO(jmesserly): this is marked as hidden until we figure out how to fix 3221 class HTMLMediaElement extends HTMLElement native "HTMLMediaElement" {
3221 // DumpRenderTree on Mac.
3222 class HTMLMediaElement extends HTMLElement native "*HTMLMediaElement" {
3223 3222
3224 static final int HAVE_CURRENT_DATA = 2; 3223 static final int HAVE_CURRENT_DATA = 2;
3225 3224
3226 static final int HAVE_ENOUGH_DATA = 4; 3225 static final int HAVE_ENOUGH_DATA = 4;
3227 3226
3228 static final int HAVE_FUTURE_DATA = 3; 3227 static final int HAVE_FUTURE_DATA = 3;
3229 3228
3230 static final int HAVE_METADATA = 1; 3229 static final int HAVE_METADATA = 1;
3231 3230
3232 static final int HAVE_NOTHING = 0; 3231 static final int HAVE_NOTHING = 0;
(...skipping 8115 matching lines...) Expand 10 before | Expand all | Expand 10 after
11348 startIndex = a.length - 1; 11347 startIndex = a.length - 1;
11349 } 11348 }
11350 for (int i = startIndex; i >= 0; i--) { 11349 for (int i = startIndex; i >= 0; i--) {
11351 if (a[i] == element) { 11350 if (a[i] == element) {
11352 return i; 11351 return i;
11353 } 11352 }
11354 } 11353 }
11355 return -1; 11354 return -1;
11356 } 11355 }
11357 } 11356 }
OLDNEW
« no previous file with comments | « no previous file | client/dom/frog_dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698