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

Unified Diff: third_party/WebKit/Source/core/frame/DOMWindow.h

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/DOMWindow.h
diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.h b/third_party/WebKit/Source/core/frame/DOMWindow.h
index 251fe2fac8169a5b7fa79d59b187a28cc8003756..73e89efe27f5df72160a2af3d4409ab02cbdd881 100644
--- a/third_party/WebKit/Source/core/frame/DOMWindow.h
+++ b/third_party/WebKit/Source/core/frame/DOMWindow.h
@@ -41,6 +41,7 @@ class ScrollToOptions;
class SerializedScriptValue;
class Storage;
class StyleMedia;
+class VisualViewport;
class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public DOMWindowBase64 {
DEFINE_WRAPPERTYPEINFO();
@@ -91,6 +92,8 @@ public:
double pageXOffset() const { return scrollX(); }
double pageYOffset() const { return scrollY(); }
+ virtual VisualViewport* visualViewport() { return nullptr; }
+
bool closed() const;
// FIXME: This is not listed as a cross-origin accessible attribute, but in
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.idl ('k') | third_party/WebKit/Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698