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

Side by Side Diff: lib/dom/frog/dom_frog.dart

Issue 10269024: Add stubs to frog to keep dartc happy (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use right exception type Created 8 years, 7 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 | « no previous file | lib/dom/templates/dom/frog/frog_dom.darttemplate » ('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 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 // DO NOT EDIT 7 // DO NOT EDIT
8 // Auto-generated Dart DOM library. 8 // Auto-generated Dart DOM library.
9 9
10 10
11 11
12 12
13 // TODO(sra): What 'window' do we get in a worker? Perhaps this 13 // TODO(sra): What 'window' do we get in a worker? Perhaps this
14 // should return the interface type. 14 // should return the interface type.
15 DOMWindow get window() native "return window;"; 15 DOMWindow get window() native "return window;";
16 16
17 HTMLDocument get document() native "return document;"; 17 HTMLDocument get document() native "return document;";
18 18
19 // TODO(vsm): Implement these.
20 interface LayoutTestController {}
21 LayoutTestController layoutTestController;
22
23 spawnDomIsolate(Window targetWindow, String entryPoint) {
24 throw const NotImplementedException();
25 }
26
19 class _AbstractWorkerJs extends _EventTargetJs implements AbstractWorker native "*AbstractWorker" { 27 class _AbstractWorkerJs extends _EventTargetJs implements AbstractWorker native "*AbstractWorker" {
20 28
21 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 29 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
22 30
23 bool dispatchEvent(_EventJs evt) native; 31 bool dispatchEvent(_EventJs evt) native;
24 32
25 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 33 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
26 } 34 }
27 35
28 class _ArrayBufferJs extends _DOMTypeJs implements ArrayBuffer native "*ArrayBuf fer" { 36 class _ArrayBufferJs extends _DOMTypeJs implements ArrayBuffer native "*ArrayBuf fer" {
(...skipping 25203 matching lines...) Expand 10 before | Expand all | Expand 10 after
25232 if (length < 0) throw new IllegalArgumentException('length'); 25240 if (length < 0) throw new IllegalArgumentException('length');
25233 if (start < 0) throw new IndexOutOfRangeException(start); 25241 if (start < 0) throw new IndexOutOfRangeException(start);
25234 int end = start + length; 25242 int end = start + length;
25235 if (end > a.length) throw new IndexOutOfRangeException(end); 25243 if (end > a.length) throw new IndexOutOfRangeException(end);
25236 for (int i = start; i < end; i++) { 25244 for (int i = start; i < end; i++) {
25237 accumulator.add(a[i]); 25245 accumulator.add(a[i]);
25238 } 25246 }
25239 return accumulator; 25247 return accumulator;
25240 } 25248 }
25241 } 25249 }
OLDNEW
« no previous file with comments | « no previous file | lib/dom/templates/dom/frog/frog_dom.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698