| Index: third_party/WebKit/Source/core/frame/VisualViewport.h
|
| diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.h b/third_party/WebKit/Source/core/frame/VisualViewport.h
|
| index 6d70a24bfc859b8719500b1b11f06d8f9f2df0db..35bdd91f23779f3e9a5b07f811ef0d08090d7745 100644
|
| --- a/third_party/WebKit/Source/core/frame/VisualViewport.h
|
| +++ b/third_party/WebKit/Source/core/frame/VisualViewport.h
|
| @@ -32,6 +32,7 @@
|
| #define VisualViewport_h
|
|
|
| #include "core/CoreExport.h"
|
| +#include "core/events/Event.h"
|
| #include "platform/geometry/FloatPoint.h"
|
| #include "platform/geometry/FloatRect.h"
|
| #include "platform/geometry/IntSize.h"
|
| @@ -62,8 +63,13 @@ class LocalFrame;
|
| // offset is set through the GraphicsLayer <-> CC sync mechanisms. Its contents is the page's
|
| // main FrameView, which corresponds to the outer viewport. The inner viewport is always contained
|
| // in the outer viewport and can pan within it.
|
| -class CORE_EXPORT VisualViewport final : public NoBaseWillBeGarbageCollectedFinalized<VisualViewport>, public GraphicsLayerClient, public ScrollableArea {
|
| +class CORE_EXPORT VisualViewport final
|
| + : public NoBaseWillBeGarbageCollectedFinalized<VisualViewport>
|
| + , public GraphicsLayerClient
|
| + , public ScriptWrappable
|
| + , public ScrollableArea {
|
| WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(VisualViewport);
|
| + DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| static PassOwnPtrWillBeRawPtr<VisualViewport> create(FrameHost& host)
|
| {
|
| @@ -195,6 +201,17 @@ public:
|
| GraphicsLayer* layerForVerticalScrollbar() const override;
|
| Widget* getWidget() override;
|
|
|
| + void updateLayoutIgnorePendingStylesheets();
|
| +
|
| + // Visual Viewport API implementation.
|
| + double scrollLeft();
|
| + double scrollTop();
|
| + void setScrollLeft(double x);
|
| + void setScrollTop(double y);
|
| + double clientWidth();
|
| + double clientHeight();
|
| + double pageScale();
|
| +
|
| // Used for gathering data on user pinch-zoom statistics.
|
| void userDidChangeScale();
|
| void sendUMAMetrics();
|
|
|