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

Side by Side Diff: sky/engine/core/dom/Document.idl

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 10 matching lines...) Expand all
21 callback CustomElementConstructor = Element (); 21 callback CustomElementConstructor = Element ();
22 22
23 typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext; 23 typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
24 24
25 [ 25 [
26 Constructor(), 26 Constructor(),
27 ConstructorCallWith=Document, 27 ConstructorCallWith=Document,
28 ] interface Document : Node { 28 ] interface Document : Node {
29 readonly attribute Element documentElement; 29 readonly attribute Element documentElement;
30 30
31 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl ement(DOMString tagName); 31 [CustomElementCallbacks, RaisesException] Element createElement(DOMString ta gName);
32 DocumentFragment createDocumentFragment(); 32 DocumentFragment createDocumentFragment();
33 33
34 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node impor tNode(Node node, optional boolean deep = false); 34 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node impor tNode(Node node, optional boolean deep = false);
35 35
36 [PerWorldBindings] Element getElementById(DOMString elementId); 36 Element getElementById(DOMString elementId);
37 37
38 [RaisesException, CustomElementCallbacks, TypeChecking=Interface] Node adopt Node(Node node); 38 [RaisesException, CustomElementCallbacks, TypeChecking=Interface] Node adopt Node(Node node);
39 39
40 readonly attribute DOMString? baseURI; 40 readonly attribute DOMString? baseURI;
41 41
42 Range createRange(); 42 Range createRange();
43 43
44 [ImplementedAs=executingWindow] readonly attribute Window defaultView; 44 [ImplementedAs=executingWindow] readonly attribute Window defaultView;
45 45
46 readonly attribute DOMString contentType; 46 readonly attribute DOMString contentType;
47 47
48 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g dir; 48 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g dir;
49 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g title; 49 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g title;
50 readonly attribute DOMString referrer; 50 readonly attribute DOMString referrer;
51 readonly attribute DOMString URL; 51 readonly attribute DOMString URL;
52 52
53 [PutForwards=href] readonly attribute Location location; 53 [PutForwards=href] readonly attribute Location location;
54 54
55 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat e; 55 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat e;
56 56
57 Element elementFromPoint([Default=Undefined] optional long x, 57 Element elementFromPoint([Default=Undefined] optional long x,
58 [Default=Undefined] optional long y); 58 [Default=Undefined] optional long y);
59 [MeasureAs=DocumentCaretRangeFromPoint]
60 Range caretRangeFromPoint([Default=Undefined] optional long x, 59 Range caretRangeFromPoint([Default=Undefined] optional long x,
61 [Default=Undefined] optional long y); 60 [Default=Undefined] optional long y);
62 61
63 // Mozilla extensions 62 // Mozilla extensions
64 Selection getSelection(); 63 Selection getSelection();
65 64
66 // HTML 5 65 // HTML 5
67 readonly attribute Element activeElement; 66 readonly attribute Element activeElement;
68 boolean hasFocus(); 67 boolean hasFocus();
69 68
70 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do cumentRegisterElement] CustomElementConstructor registerElement(DOMString name, optional Dictionary options); 69 // FIXME(Dictionary): options
70 // [CallWith=ScriptState, CustomElementCallbacks, RaisesException] CustomEle mentConstructor registerElement(DOMString name);
71 71
72 // Page visibility API. 72 // Page visibility API.
73 readonly attribute DOMString visibilityState; 73 readonly attribute DOMString visibilityState;
74 readonly attribute boolean hidden; 74 readonly attribute boolean hidden;
75 75
76 readonly attribute HTMLScriptElement currentScript; 76 readonly attribute HTMLScriptElement currentScript;
77 }; 77 };
78 78
79 Document implements ParentNode; 79 Document implements ParentNode;
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698