Index: third_party/WebKit/Source/core/page/ChromeClient.h |
diff --git a/third_party/WebKit/Source/core/page/ChromeClient.h b/third_party/WebKit/Source/core/page/ChromeClient.h |
index a48366e816dd7702ad21a829474660f40fa8834c..18229895a37bfcb8096bf653c09c73b5fb06036a 100644 |
--- a/third_party/WebKit/Source/core/page/ChromeClient.h |
+++ b/third_party/WebKit/Source/core/page/ChromeClient.h |
@@ -39,6 +39,7 @@ |
#include "public/platform/WebEventListenerProperties.h" |
#include "public/platform/WebFocusType.h" |
#include "wtf/Forward.h" |
+#include "wtf/Optional.h" |
#include "wtf/Vector.h" |
#include <memory> |
@@ -164,11 +165,15 @@ public: |
// End methods used by HostWindow. |
virtual Cursor lastSetCursorForTesting() const = 0; |
+ // Returns a custom visible content rect if a viewport override is active. |
+ virtual WTF::Optional<IntRect> visibleContentRectForPainting() const { return WTF::nullopt; } |
+ |
virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const { } |
virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; |
virtual void pageScaleFactorChanged() const { } |
virtual float clampPageScaleFactorToLimits(float scale) const { return scale; } |
+ virtual void mainFrameScrollOffsetChanged() const { } |
virtual void layoutUpdated(LocalFrame*) const { } |
void mouseDidMoveOverElement(const HitTestResult&); |