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

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

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 interface DocumentEvents extends ElementEvents {
6 EventListenerList get readyStateChange();
7 EventListenerList get selectionChange();
8 EventListenerList get contentLoaded();
9 }
10
11 // TODO(jacobr): add DocumentFragment ctor
12 // add something smarted for document.domain
13 interface Document extends Element /*, common.NodeSelector */ {
14
15 // TODO(jacobr): remove.
16 Event createEvent(String eventType);
17
18 Element get activeElement();
19
20 // TODO(jacobr): add
21 // Map<String, Class> tags;
22
23 Element get body();
24
25 void set body(Element value);
26
27 String get charset();
28
29 void set charset(String value);
30
31 // FIXME(slightlyoff): FIX COOKIES, MMM...COOKIES. ME WANT COOKIES!!
32 // Map<String, CookieList> cookies
33 // Map<String, Cookie> CookieList
34 String get cookie();
35
36 void set cookie(String value);
37
38 Window get window();
39
40 String get domain();
41
42 HeadElement get head();
43
44 String get lastModified();
45
46 // TODO(jacobr): remove once on.contentLoaded is changed to return a Future.
47 String get readyState();
48
49 String get referrer();
50
51 StyleSheetList get styleSheets();
52
53 // TODO(jacobr): should this be removed? Users could write document.query("tit le").text instead.
54 String get title();
55
56 void set title(String value);
57
58 bool get webkitHidden();
59
60 String get webkitVisibilityState();
61
62 Future<Range> caretRangeFromPoint([int x, int y]);
63
64 Future<Element> elementFromPoint([int x, int y]);
65
66 bool execCommand([String command, bool userInterface, String value]);
67
68 // TODO(jacobr): remove once a new API is specified
69 CanvasRenderingContext getCSSCanvasContext(String contextId, String name,
70 int width, int height);
71
72 bool queryCommandEnabled([String command]);
73
74 bool queryCommandIndeterm([String command]);
75
76 bool queryCommandState([String command]);
77
78 bool queryCommandSupported([String command]);
79
80 String queryCommandValue([String command]);
81
82 String get manifest();
83
84 void set manifest(String value);
85
86 DocumentEvents get on();
87
88 Future<ElementRect> get rect();
89 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698