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

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

Issue 337343002: IDL: make optional arguments (without default) explicit sometimes Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-default-arguments-next
Patch Set: Created 6 years, 4 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 | « Source/core/frame/History.idl ('k') | Source/core/frame/WindowTimers.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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 = ""); 72 boolean confirm(optional DOMString message = "");
73 DOMString? prompt(optional DOMString message = "", 73 DOMString? prompt(optional DOMString message = "",
74 optional DOMString defaultValue = ""); 74 optional DOMString defaultValue = "");
75 75
76 boolean find([Default=Undefined] optional DOMString string, 76 boolean find(optional DOMString string,
77 [Default=Undefined] optional boolean caseSensitive, 77 optional boolean caseSensitive,
78 [Default=Undefined] optional boolean backwards, 78 optional boolean backwards,
79 [Default=Undefined] optional boolean wrap, 79 optional boolean wrap,
80 [Default=Undefined] optional boolean wholeWord, 80 optional boolean wholeWord,
81 [Default=Undefined] optional boolean searchInFrames, 81 optional boolean searchInFrames,
82 [Default=Undefined] optional boolean showDialog); 82 optional boolean showDialog);
83 83
84 [Replaceable, MeasureAs=WindowOffscreenBuffering] readonly attribute boolean offscreenBuffering; 84 [Replaceable, MeasureAs=WindowOffscreenBuffering] readonly attribute boolean offscreenBuffering;
85 85
86 [Replaceable] readonly attribute long outerHeight; 86 [Replaceable] readonly attribute long outerHeight;
87 [Replaceable] readonly attribute long outerWidth; 87 [Replaceable] readonly attribute long outerWidth;
88 [Replaceable] readonly attribute long innerHeight; 88 [Replaceable] readonly attribute long innerHeight;
89 [Replaceable] readonly attribute long innerWidth; 89 [Replaceable] readonly attribute long innerWidth;
90 [Replaceable] readonly attribute long screenX; 90 [Replaceable] readonly attribute long screenX;
91 [Replaceable] readonly attribute long screenY; 91 [Replaceable] readonly attribute long screenY;
92 [Replaceable] readonly attribute long screenLeft; 92 [Replaceable] readonly attribute long screenLeft;
93 [Replaceable] readonly attribute long screenTop; 93 [Replaceable] readonly attribute long screenTop;
94 [Replaceable] readonly attribute long scrollX; 94 [Replaceable] readonly attribute long scrollX;
95 [Replaceable] readonly attribute long scrollY; 95 [Replaceable] readonly attribute long scrollY;
96 readonly attribute long pageXOffset; 96 readonly attribute long pageXOffset;
97 readonly attribute long pageYOffset; 97 readonly attribute long pageYOffset;
98 98
99 // Overloading can be replaced by optional if RuntimeEnabled is removed, by 99 // Overloading can be replaced by optional if RuntimeEnabled is removed, by
100 // changing the third argument to *optional* Dictionary scrollOptions 100 // changing the third argument to *optional* Dictionary scrollOptions
101 void scrollBy(long x, long y); 101 void scrollBy(long x, long y);
102 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(long x, lo ng y, Dictionary scrollOptions); 102 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(long x, lo ng y, Dictionary scrollOptions);
103 void scrollTo(long x, long y); 103 void scrollTo(long x, long y);
104 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(long x, lo ng y, Dictionary scrollOptions); 104 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(long x, lo ng y, Dictionary scrollOptions);
105 void scroll(long x, long y); 105 void scroll(long x, long y);
106 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(long x, long y, Dictionary scrollOptions); 106 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(long x, long y, Dictionary scrollOptions);
107 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option al float y); // FIXME: this should take longs not floats. 107 void moveBy(optional float x, optional float y); // FIXME: this should take longs not floats.
108 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option al float y); // FIXME: this should take longs not floats. 108 void moveTo(optional float x, optional float y); // FIXME: this should take longs not floats.
109 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti onal float y); // FIXME: this should take longs not floats. 109 void resizeBy(optional float x, optional float y); // FIXME: this should tak e longs not floats.
110 void resizeTo([Default=Undefined] optional float width, [Default=Undefined] optional float height); // FIXME: this should take longs not floats. 110 void resizeTo(optional float width, optional float height); // FIXME: this s hould take longs not floats.
111 111
112 [DoNotCheckSecurity] readonly attribute boolean closed; 112 [DoNotCheckSecurity] readonly attribute boolean closed;
113 113
114 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; 114 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length;
115 115
116 attribute DOMString name; 116 attribute DOMString name;
117 117
118 attribute DOMString status; 118 attribute DOMString status;
119 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus; 119 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus;
120 // This attribute is an alias of defaultStatus and is necessary for legacy u ses. 120 // This attribute is an alias of defaultStatus and is necessary for legacy u ses.
(...skipping 11 matching lines...) Expand all
132 // DOM Level 2 AbstractView Interface 132 // DOM Level 2 AbstractView Interface
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(optional Element element,
143 [TreatUndefinedAs=NullString, Default=U ndefined] optional DOMString? pseudoElement); 143 [TreatUndefinedAs=NullString] 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(optional Eleme nt element,
147 [TreatUndefine dAs=NullString, Default=Undefined] optional DOMString? pseudoElement); 147 [TreatUndefine dAs=NullString] optional DOMString? pseudoElement);
148 148
149 [Replaceable] readonly attribute double devicePixelRatio; 149 [Replaceable] readonly attribute double devicePixelRatio;
150 150
151 [RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache; 151 [RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache;
152 152
153 [RuntimeEnabled=SessionStorage, LogActivity=GetterOnly, RaisesException=Gett er] readonly attribute Storage sessionStorage; 153 [RuntimeEnabled=SessionStorage, LogActivity=GetterOnly, RaisesException=Gett er] readonly attribute Storage sessionStorage;
154 [RuntimeEnabled=LocalStorage, LogActivity=GetterOnly, RaisesException=Getter ] readonly attribute Storage localStorage; 154 [RuntimeEnabled=LocalStorage, LogActivity=GetterOnly, RaisesException=Getter ] readonly attribute Storage localStorage;
155 155
156 // This is the interface orientation in degrees. Some examples are: 156 // This is the interface orientation in degrees. Some examples are:
157 // 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;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 218 // FIXME: make this typedef accurate once enough of http://crbug.com/240176
219 // is in place. 219 // is in place.
220 // FIXME: consider putting this typedef in an .idl file containing spec-wide 220 // FIXME: consider putting this typedef in an .idl file containing spec-wide
221 // utility type definitions. 221 // utility type definitions.
222 typedef MessagePort Transferable; 222 typedef MessagePort Transferable;
223 223
224 Window implements GlobalEventHandlers; 224 Window implements GlobalEventHandlers;
225 Window implements WindowBase64; 225 Window implements WindowBase64;
226 Window implements WindowEventHandlers; 226 Window implements WindowEventHandlers;
227 Window implements WindowTimers; 227 Window implements WindowTimers;
OLDNEW
« no previous file with comments | « Source/core/frame/History.idl ('k') | Source/core/frame/WindowTimers.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698