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

Side by Side Diff: core/frame/Window.idl

Issue 581453002: Dartium Roll 38 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Sync'd w/ r 182210 Created 6 years, 3 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 | « core/frame/WebKitPoint.idl ('k') | core/html/FormData.idl » ('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, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 27 matching lines...) Expand all
38 readonly attribute Screen screen; 38 readonly attribute Screen screen;
39 readonly attribute History history; 39 readonly attribute History history;
40 [Replaceable, MeasureAs=BarPropLocationbar] readonly attribute BarProp locat ionbar; 40 [Replaceable, MeasureAs=BarPropLocationbar] readonly attribute BarProp locat ionbar;
41 [Replaceable, MeasureAs=BarPropMenubar] readonly attribute BarProp menubar; 41 [Replaceable, MeasureAs=BarPropMenubar] readonly attribute BarProp menubar;
42 [Replaceable, MeasureAs=BarPropPersonalbar] readonly attribute BarProp perso nalbar; 42 [Replaceable, MeasureAs=BarPropPersonalbar] readonly attribute BarProp perso nalbar;
43 [Replaceable, MeasureAs=BarPropScrollbars] readonly attribute BarProp scroll bars; 43 [Replaceable, MeasureAs=BarPropScrollbars] readonly attribute BarProp scroll bars;
44 [Replaceable, MeasureAs=BarPropStatusbar] readonly attribute BarProp statusb ar; 44 [Replaceable, MeasureAs=BarPropStatusbar] readonly attribute BarProp statusb ar;
45 [Replaceable, MeasureAs=BarPropToolbar] readonly attribute BarProp toolbar; 45 [Replaceable, MeasureAs=BarPropToolbar] readonly attribute BarProp toolbar;
46 [LogActivity=GetterOnly] readonly attribute Navigator navigator; 46 [LogActivity=GetterOnly] readonly attribute Navigator navigator;
47 [Replaceable] readonly attribute Navigator clientInformation; 47 [Replaceable] readonly attribute Navigator clientInformation;
48 [DoNotCheckSecurity, Unforgeable, Replaceable, LogActivity, PutForwards=href ] readonly attribute Location location; 48 [DoNotCheckSecurity, Unforgeable, Replaceable, PutForwards=href] readonly at tribute Location location;
49 [Custom, MeasureAs=WindowEvent, NotEnumerable] attribute Event event; 49 [Custom, MeasureAs=WindowEvent, NotEnumerable] attribute Event event;
50 50
51 Selection getSelection(); 51 Selection getSelection();
52 52
53 [CheckSecurity=Node, Custom=Getter] readonly attribute Element frameElement; 53 [CheckSecurity=Node, Custom=Getter] readonly attribute Element frameElement;
54 54
55 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus(); 55 [DoNotCheckSecurity, CallWith=ExecutionContext] void focus();
56 [DoNotCheckSecurity] void blur(); 56 [DoNotCheckSecurity] void blur();
57 [DoNotCheckSecurity, CallWith=ExecutionContext] void close(); 57 [DoNotCheckSecurity, CallWith=ExecutionContext] void close();
58 58
59 void print(); 59 void print();
60 void stop(); 60 void stop();
61 61
62 [Custom] Window open(DOMString url, 62 [Custom] Window open(DOMString url,
63 DOMString name, 63 DOMString name,
64 optional DOMString options); 64 optional DOMString options);
65 65
66 [RuntimeEnabled=ShowModalDialog, Custom] any showModalDialog(DOMString url, 66 [RuntimeEnabled=ShowModalDialog, Custom] any showModalDialog(DOMString url,
67 optional any dialogArgs, 67 optional any dialogArgs,
68 optional DOMString featureArgs); 68 optional DOMString featureArgs);
69 69
70 void alert(); 70 void alert();
71 void alert(DOMString message); 71 void alert(DOMString message);
72 boolean confirm(optional DOMString message = null); 72 boolean confirm(optional DOMString message = "");
73 [TreatReturnedNullStringAs=Null] DOMString prompt(optional DOMString message = null, 73 DOMString? prompt(optional DOMString message = "",
74 optional DOMString default Value = null); 74 optional DOMString defaultValue = "");
75 75
76 boolean find([Default=Undefined] optional DOMString string, 76 boolean find([Default=Undefined] optional DOMString string,
77 [Default=Undefined] optional boolean caseSensitive, 77 [Default=Undefined] optional boolean caseSensitive,
78 [Default=Undefined] optional boolean backwards, 78 [Default=Undefined] optional boolean backwards,
79 [Default=Undefined] optional boolean wrap, 79 [Default=Undefined] optional boolean wrap,
80 [Default=Undefined] optional boolean wholeWord, 80 [Default=Undefined] optional boolean wholeWord,
81 [Default=Undefined] optional boolean searchInFrames, 81 [Default=Undefined] optional boolean searchInFrames,
82 [Default=Undefined] optional boolean showDialog); 82 [Default=Undefined] optional boolean showDialog);
83 83
84 [Replaceable, MeasureAs=WindowOffscreenBuffering] readonly attribute boolean offscreenBuffering; 84 [Replaceable, MeasureAs=WindowOffscreenBuffering] readonly attribute boolean offscreenBuffering;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 readonly attribute Document document; 133 readonly attribute Document document;
134 134
135 // CSSOM View Module 135 // CSSOM View Module
136 MediaQueryList matchMedia(DOMString query); 136 MediaQueryList matchMedia(DOMString query);
137 137
138 // styleMedia has been removed from the CSSOM View specification. 138 // styleMedia has been removed from the CSSOM View specification.
139 readonly attribute StyleMedia styleMedia; 139 readonly attribute StyleMedia styleMedia;
140 140
141 // DOM Level 2 Style Interface 141 // DOM Level 2 Style Interface
142 CSSStyleDeclaration getComputedStyle([Default=Undefined] optional Element el ement, 142 CSSStyleDeclaration getComputedStyle([Default=Undefined] optional Element el ement,
143 [TreatNullAs=NullStr ing, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString pseudoEl ement); 143 [TreatUndefinedAs=NullString, Default=U ndefined] optional DOMString? pseudoElement);
144 144
145 // WebKit extensions 145 // WebKit extensions
146 [MeasureAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Undef ined] optional Element element, 146 [MeasureAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Undef ined] optional Element element,
147 [TreatNullAs=N ullString, TreatUndefinedAs=NullString, Default=Undefined] optional DOMString ps eudoElement); 147 [TreatUndefine dAs=NullString, Default=Undefined] optional DOMString? pseudoElement);
148 148
149 [Replaceable] readonly attribute double devicePixelRatio; 149 [Replaceable] readonly attribute double devicePixelRatio;
150 150
151 [MeasureAs=PrefixedConvertPointFromPageToNode] WebKitPoint webkitConvertPoin tFromPageToNode([Default=Undefined] optional Node node,
152 [Default=Undefined] optional WebKitPoint p);
153 [MeasureAs=PrefixedConvertPointFromNodeToPage] WebKitPoint webkitConvertPoin tFromNodeToPage([Default=Undefined] optional Node node,
154 [Default=Undefined] optional WebKitPoint p);
155
156 [RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache; 151 [RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache;
157 152
158 [RuntimeEnabled=SessionStorage, LogActivity=GetterOnly, RaisesException=Gett er] readonly attribute Storage sessionStorage; 153 [RuntimeEnabled=SessionStorage, LogActivity=GetterOnly, RaisesException=Gett er] readonly attribute Storage sessionStorage;
159 [RuntimeEnabled=LocalStorage, LogActivity=GetterOnly, RaisesException=Getter ] readonly attribute Storage localStorage; 154 [RuntimeEnabled=LocalStorage, LogActivity=GetterOnly, RaisesException=Getter ] readonly attribute Storage localStorage;
160 155
161 // This is the interface orientation in degrees. Some examples are: 156 // This is the interface orientation in degrees. Some examples are:
162 // 0 is straight up; -90 is when the device is rotated 90 clockwise; 157 // 0 is straight up; -90 is when the device is rotated 90 clockwise;
163 // 90 is when rotated counter clockwise. 158 // 90 is when rotated counter clockwise.
164 [RuntimeEnabled=OrientationEvent, MeasureAs=WindowOrientation] readonly attr ibute long orientation; 159 [RuntimeEnabled=OrientationEvent, MeasureAs=WindowOrientation] readonly attr ibute long orientation;
165 160
166 [Replaceable] readonly attribute Console console; 161 [Replaceable] readonly attribute Console console;
167 162
168 // cross-document messaging 163 // cross-document messaging
169 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr iptValue message, DOMString targetOrigin, optional MessagePort[] messagePorts); 164 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(SerializedScr iptValue message, DOMString targetOrigin, optional sequence<Transferable> transf er);
170 165
171 [Replaceable] readonly attribute Performance performance; 166 [Replaceable] readonly attribute Performance performance;
172 167
173 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque stAnimationFrameCallback callback); 168 [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(Reque stAnimationFrameCallback callback);
174 void cancelAnimationFrame(long id); 169 void cancelAnimationFrame(long id);
175 [DeprecateAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame (RequestAnimationFrameCallback callback); 170 [DeprecateAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame (RequestAnimationFrameCallback callback);
176 [DeprecateAs=PrefixedCancelAnimationFrame, ImplementedAs=cancelAnimationFram e] void webkitCancelAnimationFrame(long id); 171 [DeprecateAs=PrefixedCancelAnimationFrame, ImplementedAs=cancelAnimationFram e] void webkitCancelAnimationFrame(long id);
177 [DeprecateAs=PrefixedCancelRequestAnimationFrame, ImplementedAs=cancelAnimat ionFrame] void webkitCancelRequestAnimationFrame(long id); 172 [DeprecateAs=PrefixedCancelRequestAnimationFrame, ImplementedAs=cancelAnimat ionFrame] void webkitCancelRequestAnimationFrame(long id);
178 173
179 [Replaceable] readonly attribute CSS CSS; 174 [Replaceable] readonly attribute CSS CSS;
180 175
181 // Event handler attributes 176 // Event handler attributes
182 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationen d; 177 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationen d;
183 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationit eration; 178 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationit eration;
184 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationst art; 179 [RuntimeEnabled=CSSAnimationUnprefixed] attribute EventHandler onanimationst art;
185 [RuntimeEnabled=OrientationEvent] attribute EventHandler onorientationchange ; 180 [RuntimeEnabled=OrientationEvent] attribute EventHandler onorientationchange ;
186 attribute EventHandler onsearch; 181 attribute EventHandler onsearch;
187 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 182 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
188 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 183 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
189 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 184 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
190 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 185 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
191 attribute EventHandler ontransitionend; 186 attribute EventHandler ontransitionend;
192 attribute EventHandler onwebkitanimationend; 187 attribute EventHandler onwebkitanimationend;
193 attribute EventHandler onwebkitanimationiteration; 188 attribute EventHandler onwebkitanimationiteration;
194 attribute EventHandler onwebkitanimationstart; 189 attribute EventHandler onwebkitanimationstart;
195 attribute EventHandler onwebkittransitionend; 190 attribute EventHandler onwebkittransitionend;
196 [LogActivity=SetterOnly] attribute EventHandler onwheel; 191 attribute EventHandler onwheel;
197 192
198 [MeasureAs=WindowCaptureEvents] void captureEvents(); 193 [MeasureAs=WindowCaptureEvents] void captureEvents();
199 [MeasureAs=WindowReleaseEvents] void releaseEvents(); 194 [MeasureAs=WindowReleaseEvents] void releaseEvents();
200 195
201 // Additional constructors. 196 // Additional constructors.
202 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons tructor WebKitTransitionEvent; 197 [MeasureAs=PrefixedTransitionEventConstructor] attribute TransitionEventCons tructor WebKitTransitionEvent;
203 [RuntimeEnabled=CSSAnimationUnprefixed] attribute WebKitAnimationEventConstr uctor AnimationEvent; 198 [RuntimeEnabled=CSSAnimationUnprefixed] attribute WebKitAnimationEventConstr uctor AnimationEvent;
204 [MeasureAs=PrefixedWindowURL] attribute URLConstructor webkitURL; // FIXME: deprecate this. 199 [MeasureAs=PrefixedWindowURL] attribute URLConstructor webkitURL; // FIXME: deprecate this.
205 [MeasureAs=PrefixedMutationObserverConstructor] attribute MutationObserverCo nstructor WebKitMutationObserver; 200 [MeasureAs=PrefixedMutationObserverConstructor] attribute MutationObserverCo nstructor WebKitMutationObserver;
206 201
207 // window.toString() requires special handling in V8 202 // window.toString() requires special handling in V8
208 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] DOMString t oString(); 203 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier ;
209 204
210 [NotEnumerable] getter Window (unsigned long index); 205 [NotEnumerable] getter Window (unsigned long index);
211 [Custom, NotEnumerable] getter Window (DOMString name); 206 [Custom, NotEnumerable] getter Window (DOMString name);
212 }; 207 };
213 208
209 // http://www.whatwg.org/specs/web-apps/current-work/#transferable-objects
210 //
211 // Expressing the Transferable typedef in IDL depends on http://crbug.com/240176 .
212 // The postMessage() methods taking a Transferable array argument have custom
213 // binding code that is able to handle the Transferables that we currently
214 // recognize. To be able to declare a postMessage() signature that matches
215 // the implementation, we provide a Transferable typedef but with an
216 // incomplete type.
217 //
218 // FIXME: make this typedef accurate once enough of http://crbug.com/240176
219 // is in place.
220 // FIXME: consider putting this typedef in an .idl file containing spec-wide
221 // utility type definitions.
222 typedef MessagePort Transferable;
223
214 Window implements GlobalEventHandlers; 224 Window implements GlobalEventHandlers;
215 Window implements WindowBase64; 225 Window implements WindowBase64;
216 Window implements WindowEventHandlers; 226 Window implements WindowEventHandlers;
217 Window implements WindowTimers; 227 Window implements WindowTimers;
OLDNEW
« no previous file with comments | « core/frame/WebKitPoint.idl ('k') | core/html/FormData.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698