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

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

Issue 8457005: convert isolates to use Future (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: updated co19 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
« no previous file with comments | « corelib/src/isolate.dart ('k') | frog/lib/isolate.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('html'); 1 #library('html');
2 2
3 #import('dart:dom', prefix:'dom'); 3 #import('dart:dom', prefix:'dom');
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 HTML library. 9 // Auto-generated Dart HTML library.
10 10
(...skipping 18688 matching lines...) Expand 10 before | Expand all | Expand 10 after
18699 18699
18700 // TODO(jacobr): should this be removed? Users could write document.query("tit le").text instead. 18700 // TODO(jacobr): should this be removed? Users could write document.query("tit le").text instead.
18701 String get title(); 18701 String get title();
18702 18702
18703 void set title(String value); 18703 void set title(String value);
18704 18704
18705 bool get webkitHidden(); 18705 bool get webkitHidden();
18706 18706
18707 String get webkitVisibilityState(); 18707 String get webkitVisibilityState();
18708 18708
18709 Promise<Range> caretRangeFromPoint([int x, int y]); 18709 Future<Range> caretRangeFromPoint([int x, int y]);
18710 18710
18711 // TODO(jacobr): remove. 18711 // TODO(jacobr): remove.
18712 Element createElement([String tagName]); 18712 Element createElement([String tagName]);
18713 18713
18714 Promise<Element> elementFromPoint([int x, int y]); 18714 Future<Element> elementFromPoint([int x, int y]);
18715 18715
18716 bool execCommand([String command, bool userInterface, String value]); 18716 bool execCommand([String command, bool userInterface, String value]);
18717 18717
18718 // TODO(jacobr): remove once a new API is specified 18718 // TODO(jacobr): remove once a new API is specified
18719 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, 18719 CanvasRenderingContext getCSSCanvasContext(String contextId, String name,
18720 int width, int height); 18720 int width, int height);
18721 18721
18722 bool queryCommandEnabled([String command]); 18722 bool queryCommandEnabled([String command]);
18723 18723
18724 bool queryCommandIndeterm([String command]); 18724 bool queryCommandIndeterm([String command]);
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
19101 StyleSheetList get styleSheets() => LevelDom.wrapStyleSheetList(_documentPtr.s tyleSheets); 19101 StyleSheetList get styleSheets() => LevelDom.wrapStyleSheetList(_documentPtr.s tyleSheets);
19102 19102
19103 String get title() => _documentPtr.title; 19103 String get title() => _documentPtr.title;
19104 19104
19105 void set title(String value) { _documentPtr.title = value; } 19105 void set title(String value) { _documentPtr.title = value; }
19106 19106
19107 bool get webkitHidden() => _documentPtr.webkitHidden; 19107 bool get webkitHidden() => _documentPtr.webkitHidden;
19108 19108
19109 String get webkitVisibilityState() => _documentPtr.webkitVisibilityState; 19109 String get webkitVisibilityState() => _documentPtr.webkitVisibilityState;
19110 19110
19111 Promise<Range> caretRangeFromPoint([int x = null, int y = null]) { 19111 Future<Range> caretRangeFromPoint([int x = null, int y = null]) {
19112 throw 'TODO(jacobr): impl promise.'; 19112 throw 'TODO(jacobr): impl promise.';
19113 // return LevelDom.wrapRange(_documentPtr.caretRangeFromPoint(x, y)); 19113 // return LevelDom.wrapRange(_documentPtr.caretRangeFromPoint(x, y));
19114 } 19114 }
19115 19115
19116 Element createElement([String tagName = null]) { 19116 Element createElement([String tagName = null]) {
19117 return LevelDom.wrapElement(_documentPtr.createElement(tagName)); 19117 return LevelDom.wrapElement(_documentPtr.createElement(tagName));
19118 } 19118 }
19119 19119
19120 Event createEvent([String eventType = null]) { 19120 Event createEvent([String eventType = null]) {
19121 return LevelDom.wrapEvent(_documentPtr.createEvent(eventType)); 19121 return LevelDom.wrapEvent(_documentPtr.createEvent(eventType));
19122 } 19122 }
19123 19123
19124 Promise<Element> elementFromPoint([int x = null, int y = null]) { 19124 Future<Element> elementFromPoint([int x = null, int y = null]) {
19125 throw 'TODO(jacobr): impl using promise'; 19125 throw 'TODO(jacobr): impl using promise';
19126 // return LevelDom.wrapElement(_documentPtr.elementFromPoint(x, y)); 19126 // return LevelDom.wrapElement(_documentPtr.elementFromPoint(x, y));
19127 } 19127 }
19128 19128
19129 bool execCommand([String command = null, bool userInterface = null, String val ue = null]) { 19129 bool execCommand([String command = null, bool userInterface = null, String val ue = null]) {
19130 return _documentPtr.execCommand(command, userInterface, value); 19130 return _documentPtr.execCommand(command, userInterface, value);
19131 } 19131 }
19132 19132
19133 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, 19133 CanvasRenderingContext getCSSCanvasContext(String contextId, String name,
19134 int width, int height) { 19134 int width, int height) {
(...skipping 3272 matching lines...) Expand 10 before | Expand all | Expand 10 after
22407 startIndex = a.length - 1; 22407 startIndex = a.length - 1;
22408 } 22408 }
22409 for (int i = startIndex; i >= 0; i--) { 22409 for (int i = startIndex; i >= 0; i--) {
22410 if (a[i] == element) { 22410 if (a[i] == element) {
22411 return i; 22411 return i;
22412 } 22412 }
22413 } 22413 }
22414 return -1; 22414 return -1;
22415 } 22415 }
22416 } 22416 }
OLDNEW
« no previous file with comments | « corelib/src/isolate.dart ('k') | frog/lib/isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698