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

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

Issue 677223002: Remove some more frame-level scrolling machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/frame/LocalDOMWindow.cpp ('k') | sky/engine/core/rendering/RenderBox.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, 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 [Default=Undefined] optional boolean showDialog); 52 [Default=Undefined] optional boolean showDialog);
53 53
54 [Replaceable] readonly attribute long outerHeight; 54 [Replaceable] readonly attribute long outerHeight;
55 [Replaceable] readonly attribute long outerWidth; 55 [Replaceable] readonly attribute long outerWidth;
56 [Replaceable] readonly attribute long innerHeight; 56 [Replaceable] readonly attribute long innerHeight;
57 [Replaceable] readonly attribute long innerWidth; 57 [Replaceable] readonly attribute long innerWidth;
58 [Replaceable] readonly attribute long screenX; 58 [Replaceable] readonly attribute long screenX;
59 [Replaceable] readonly attribute long screenY; 59 [Replaceable] readonly attribute long screenY;
60 [Replaceable] readonly attribute long screenLeft; 60 [Replaceable] readonly attribute long screenLeft;
61 [Replaceable] readonly attribute long screenTop; 61 [Replaceable] readonly attribute long screenTop;
62 [Replaceable] readonly attribute long scrollX;
63 [Replaceable] readonly attribute long scrollY;
64 readonly attribute long pageXOffset;
65 readonly attribute long pageYOffset;
66 62
67 // Overloading can be replaced by optional if RuntimeEnabled is removed, by
68 // changing the third argument to *optional* Dictionary scrollOptions
69 void scrollBy(long x, long y);
70 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollBy(long x, lo ng y, Dictionary scrollOptions);
71 void scrollTo(long x, long y);
72 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scrollTo(long x, lo ng y, Dictionary scrollOptions);
73 void scroll(long x, long y);
74 [RuntimeEnabled=CSSOMSmoothScroll, RaisesException] void scroll(long x, long y, Dictionary scrollOptions);
75 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option al float y); // FIXME: this should take longs not floats. 63 void moveBy([Default=Undefined] optional float x, [Default=Undefined] option al float y); // FIXME: this should take longs not floats.
76 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option al float y); // FIXME: this should take longs not floats. 64 void moveTo([Default=Undefined] optional float x, [Default=Undefined] option al float y); // FIXME: this should take longs not floats.
77 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti onal float y); // FIXME: this should take longs not floats. 65 void resizeBy([Default=Undefined] optional float x, [Default=Undefined] opti onal float y); // FIXME: this should take longs not floats.
78 void resizeTo([Default=Undefined] optional float width, [Default=Undefined] optional float height); // FIXME: this should take longs not floats. 66 void resizeTo([Default=Undefined] optional float width, [Default=Undefined] optional float height); // FIXME: this should take longs not floats.
79 67
80 // Self referential attributes 68 // Self referential attributes
81 [Replaceable, DoNotCheckSecurity] readonly attribute Window self; 69 [Replaceable, DoNotCheckSecurity] readonly attribute Window self;
82 [DoNotCheckSecurity, Unforgeable] readonly attribute Window window; 70 [DoNotCheckSecurity, Unforgeable] readonly attribute Window window;
83 71
84 // DOM Level 2 AbstractView Interface 72 // DOM Level 2 AbstractView Interface
(...skipping 29 matching lines...) Expand all
114 102
115 // window.toString() requires special handling in V8 103 // window.toString() requires special handling in V8
116 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier ; 104 [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier ;
117 105
118 // FIXME(sky): can't remove w/o also removing hacks in bindings generator. 106 // FIXME(sky): can't remove w/o also removing hacks in bindings generator.
119 [Custom, NotEnumerable] getter Window (DOMString name); 107 [Custom, NotEnumerable] getter Window (DOMString name);
120 }; 108 };
121 109
122 Window implements WindowBase64; 110 Window implements WindowBase64;
123 Window implements WindowTimers; 111 Window implements WindowTimers;
OLDNEW
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.cpp ('k') | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698