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

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

Issue 879913003: Use IntRect instead of FloatRect for window positions and sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added FIXME comments 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 | « Source/core/frame/Screen.cpp ('k') | Source/core/loader/EmptyClients.h » ('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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 [Replaceable] readonly attribute double scrollY; 94 [Replaceable] readonly attribute double scrollY;
95 readonly attribute double pageXOffset; 95 readonly attribute double pageXOffset;
96 readonly attribute double pageYOffset; 96 readonly attribute double pageYOffset;
97 97
98 void scrollBy(double x, double y); 98 void scrollBy(double x, double y);
99 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy([Default=Undefined] optiona l ScrollToOptions scrollToOptions); 99 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy([Default=Undefined] optiona l ScrollToOptions scrollToOptions);
100 void scrollTo(double x, double y); 100 void scrollTo(double x, double y);
101 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo([Default=Undefined] optiona l ScrollToOptions scrollToOptions); 101 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo([Default=Undefined] optiona l ScrollToOptions scrollToOptions);
102 void scroll(double x, double y); 102 void scroll(double x, double y);
103 [RuntimeEnabled=CSSOMSmoothScroll] void scroll([Default=Undefined] optional ScrollToOptions scrollOptions); 103 [RuntimeEnabled=CSSOMSmoothScroll] void scroll([Default=Undefined] optional ScrollToOptions scrollOptions);
104 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option al float y); // FIXME: this should take longs not floats. 104 void moveBy(optional long x = 0, optional long y = 0);
105 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option al float y); // FIXME: this should take longs not floats. 105 void moveTo(optional long x, optional long y); // FIXME: Arguments should no t be optional, or should have defaults.
106 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti onal float y); // FIXME: this should take longs not floats. 106 void resizeBy(optional long x = 0, optional long y = 0);
107 void resizeTo([Default=Undefined] optional float width, [Default=Undefined] optional float height); // FIXME: this should take longs not floats. 107 void resizeTo(optional long width, optional long height); // FIXME: Argument s should not be optional, or should have defaults.
108 108
109 [DoNotCheckSecurity] readonly attribute boolean closed; 109 [DoNotCheckSecurity] readonly attribute boolean closed;
110 110
111 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length; 111 [Replaceable, DoNotCheckSecurity] readonly attribute unsigned long length;
112 112
113 attribute DOMString name; 113 attribute DOMString name;
114 114
115 attribute DOMString status; 115 attribute DOMString status;
116 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus; 116 [MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus;
117 // This attribute is an alias of defaultStatus and is necessary for legacy u ses. 117 // This attribute is an alias of defaultStatus and is necessary for legacy u ses.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 211 // FIXME: make this typedef accurate once enough of http://crbug.com/240176
212 // is in place. 212 // is in place.
213 // FIXME: consider putting this typedef in an .idl file containing spec-wide 213 // FIXME: consider putting this typedef in an .idl file containing spec-wide
214 // utility type definitions. 214 // utility type definitions.
215 typedef MessagePort Transferable; 215 typedef MessagePort Transferable;
216 216
217 Window implements GlobalEventHandlers; 217 Window implements GlobalEventHandlers;
218 Window implements WindowBase64; 218 Window implements WindowBase64;
219 Window implements WindowEventHandlers; 219 Window implements WindowEventHandlers;
220 Window implements WindowTimers; 220 Window implements WindowTimers;
OLDNEW
« no previous file with comments | « Source/core/frame/Screen.cpp ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698