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

Side by Side Diff: client/html/src/Document.dart

Issue 8363040: Implement measurement using futures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to all comments 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
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 interface DocumentEvents extends ElementEvents { 5 interface DocumentEvents extends ElementEvents {
6 EventListenerList get readyStateChange(); 6 EventListenerList get readyStateChange();
7 EventListenerList get selectionChange(); 7 EventListenerList get selectionChange();
8 EventListenerList get contentLoaded(); 8 EventListenerList get contentLoaded();
9 } 9 }
10 10
(...skipping 25 matching lines...) Expand all
36 void set cookie(String value); 36 void set cookie(String value);
37 37
38 Window get window(); 38 Window get window();
39 39
40 String get domain(); 40 String get domain();
41 41
42 HeadElement get head(); 42 HeadElement get head();
43 43
44 String get lastModified(); 44 String get lastModified();
45 45
46 // TODO(jacobr): remove once on.contentLoaded is changed to return a Promise. 46 // TODO(jacobr): remove once on.contentLoaded is changed to return a Future.
47 String get readyState(); 47 String get readyState();
48 48
49 String get referrer(); 49 String get referrer();
50 50
51 StyleSheetList get styleSheets(); 51 StyleSheetList get styleSheets();
52 52
53 // TODO(jacobr): should this be removed? Users could write document.query("tit le").text instead. 53 // TODO(jacobr): should this be removed? Users could write document.query("tit le").text instead.
54 String get title(); 54 String get title();
55 55
56 void set title(String value); 56 void set title(String value);
57 57
58 bool get webkitHidden(); 58 bool get webkitHidden();
59 59
60 String get webkitVisibilityState(); 60 String get webkitVisibilityState();
61 61
62 Promise<Range> caretRangeFromPoint([int x, int y]); 62 Future<Range> caretRangeFromPoint([int x, int y]);
63 63
64 // TODO(jacobr): remove. 64 // TODO(jacobr): remove.
65 Element createElement([String tagName]); 65 Element createElement([String tagName]);
66 66
67 Promise<Element> elementFromPoint([int x, int y]); 67 Future<Element> elementFromPoint([int x, int y]);
68 68
69 bool execCommand([String command, bool userInterface, String value]); 69 bool execCommand([String command, bool userInterface, String value]);
70 70
71 // TODO(jacobr): remove once a new API is specified 71 // TODO(jacobr): remove once a new API is specified
72 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, 72 CanvasRenderingContext getCSSCanvasContext(String contextId, String name,
73 int width, int height); 73 int width, int height);
74 74
75 bool queryCommandEnabled([String command]); 75 bool queryCommandEnabled([String command]);
76 76
77 bool queryCommandIndeterm([String command]); 77 bool queryCommandIndeterm([String command]);
78 78
79 bool queryCommandState([String command]); 79 bool queryCommandState([String command]);
80 80
81 bool queryCommandSupported([String command]); 81 bool queryCommandSupported([String command]);
82 82
83 String queryCommandValue([String command]); 83 String queryCommandValue([String command]);
84 84
85 String get manifest(); 85 String get manifest();
86 86
87 void set manifest(String value); 87 void set manifest(String value);
88 88
89 DocumentEvents get on(); 89 DocumentEvents get on();
90
91 Future<ElementRect> get rect();
90 } 92 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698