1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ResizeViewportAnchor_h
6 #define ResizeViewportAnchor_h
8 #include "platform/geometry/DoublePoint.h"
9 #include "platform/heap/Handle.h"
10 #include "web/ViewportAnchor.h"
17 // The resize anchor saves the current scroll offset of the visual viewport and
18 // restores to that scroll offset so that document location appears exactly
19 // unchanged to the user.
20 class ResizeViewportAnchor
: public ViewportAnchor
{
23 ResizeViewportAnchor(FrameView
& rootFrameView
, VisualViewport
&);
24 ~ResizeViewportAnchor();
27 // Inner viewport origin in the reference frame of the root document, in CSS
29 DoublePoint m_visualViewportInDocument
;
34 #endif // ResizeViewportAnchor_h