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

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

Issue 2025393003: Move document.visualViewport to window.visualViewport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing expectations Created 4 years, 6 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 | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | no next file » | 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 [Replaceable] readonly attribute double pageXOffset; 120 [Replaceable] readonly attribute double pageXOffset;
121 [Replaceable] readonly attribute double scrollY; 121 [Replaceable] readonly attribute double scrollY;
122 [Replaceable] readonly attribute double pageYOffset; 122 [Replaceable] readonly attribute double pageYOffset;
123 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(optional ScrollToOptions opti ons); 123 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(optional ScrollToOptions opti ons);
124 void scroll(unrestricted double x, unrestricted double y); 124 void scroll(unrestricted double x, unrestricted double y);
125 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op tions); 125 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op tions);
126 void scrollTo(unrestricted double x, unrestricted double y); 126 void scrollTo(unrestricted double x, unrestricted double y);
127 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op tions); 127 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op tions);
128 void scrollBy(unrestricted double x, unrestricted double y); 128 void scrollBy(unrestricted double x, unrestricted double y);
129 129
130 // Visual Viewport API
131 // https://github.com/WICG/ViewportAPI
132 [RuntimeEnabled=VisualViewportAPI] readonly attribute VisualViewport? visual Viewport;
133
130 // client 134 // client
131 [Replaceable] readonly attribute long screenX; 135 [Replaceable] readonly attribute long screenX;
132 [Replaceable] readonly attribute long screenY; 136 [Replaceable] readonly attribute long screenY;
133 [Replaceable] readonly attribute long outerWidth; 137 [Replaceable] readonly attribute long outerWidth;
134 [Replaceable] readonly attribute long outerHeight; 138 [Replaceable] readonly attribute long outerHeight;
135 [Replaceable] readonly attribute double devicePixelRatio; 139 [Replaceable] readonly attribute double devicePixelRatio;
136 140
137 // Selection API 141 // Selection API
138 // http://w3c.github.io/selection-api/#extensions-to-window-interface 142 // http://w3c.github.io/selection-api/#extensions-to-window-interface
139 Selection? getSelection(); 143 Selection? getSelection();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 207 // FIXME: make this typedef accurate once enough of http://crbug.com/240176
204 // is in place. 208 // is in place.
205 // FIXME: consider putting this typedef in an .idl file containing spec-wide 209 // FIXME: consider putting this typedef in an .idl file containing spec-wide
206 // utility type definitions. 210 // utility type definitions.
207 typedef MessagePort Transferable; 211 typedef MessagePort Transferable;
208 212
209 Window implements GlobalEventHandlers; 213 Window implements GlobalEventHandlers;
210 Window implements WindowBase64; 214 Window implements WindowBase64;
211 Window implements WindowEventHandlers; 215 Window implements WindowEventHandlers;
212 Window implements WindowTimers; 216 Window implements WindowTimers;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698