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

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

Issue 8888027: DOM fixes for types that are not marked hidden (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 | frog/gen.dart » ('j') | frog/gen.dart » ('J')
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 class Window extends DOMWindow {} 15 // TODO(jmesserly): We need to be smarter about inheriting from a hidden native
16 // type (in this case DOMWindow)
17 class Window extends DOMWindow native "*Window" {}
16 DOMWindow get window() native "return window;"; 18 DOMWindow get window() native "return window;";
17 // TODO(vsm): Revert to Dart method when 508 is fixed. 19 // TODO(vsm): Revert to Dart method when 508 is fixed.
18 HTMLDocument get document() native "return window.document;"; 20 HTMLDocument get document() native "return window.document;";
19 21
20 class AbstractWorker native "*AbstractWorker" { 22 class AbstractWorker native "*AbstractWorker" {
21 23
22 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 24 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
23 25
24 bool dispatchEvent(Event evt) native; 26 bool dispatchEvent(Event evt) native;
25 27
(...skipping 3182 matching lines...) Expand 10 before | Expand all | Expand 10 after
3208 3210
3209 int vspace; 3211 int vspace;
3210 3212
3211 String width; 3213 String width;
3212 3214
3213 void start() native; 3215 void start() native;
3214 3216
3215 void stop() native; 3217 void stop() native;
3216 } 3218 }
3217 3219
3218 class HTMLMediaElement extends HTMLElement native "HTMLMediaElement" { 3220 // TODO(jmesserly): this is marked as hidden until we figure out how to fix
3221 // DumpRenderTree on Mac.
3222 class HTMLMediaElement extends HTMLElement native "*HTMLMediaElement" {
sra1 2011/12/08 22:04:32 This will likely break FireFox since it is not a l
Jennifer Messerly 2011/12/08 22:17:48 As the comment says, it doesn't exist on DumpRende
3219 3223
3220 static final int HAVE_CURRENT_DATA = 2; 3224 static final int HAVE_CURRENT_DATA = 2;
3221 3225
3222 static final int HAVE_ENOUGH_DATA = 4; 3226 static final int HAVE_ENOUGH_DATA = 4;
3223 3227
3224 static final int HAVE_FUTURE_DATA = 3; 3228 static final int HAVE_FUTURE_DATA = 3;
3225 3229
3226 static final int HAVE_METADATA = 1; 3230 static final int HAVE_METADATA = 1;
3227 3231
3228 static final int HAVE_NOTHING = 0; 3232 static final int HAVE_NOTHING = 0;
(...skipping 8105 matching lines...) Expand 10 before | Expand all | Expand 10 after
11334 startIndex = a.length - 1; 11338 startIndex = a.length - 1;
11335 } 11339 }
11336 for (int i = startIndex; i >= 0; i--) { 11340 for (int i = startIndex; i >= 0; i--) {
11337 if (a[i] == element) { 11341 if (a[i] == element) {
11338 return i; 11342 return i;
11339 } 11343 }
11340 } 11344 }
11341 return -1; 11345 return -1;
11342 } 11346 }
11343 } 11347 }
OLDNEW
« no previous file with comments | « no previous file | frog/gen.dart » ('j') | frog/gen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698