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

Unified Diff: Source/web/WebHistoryItem.cpp

Issue 263853008: Added pinch viewport offset to history item. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added backward compatibility, tests Created 6 years, 7 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: Source/web/WebHistoryItem.cpp
diff --git a/Source/web/WebHistoryItem.cpp b/Source/web/WebHistoryItem.cpp
index a6eadeb2cb82e3d372cfbf9a859825ada6d81e96..893ed22c46aac4bee30f7f23c585b84bae10a814 100644
--- a/Source/web/WebHistoryItem.cpp
+++ b/Source/web/WebHistoryItem.cpp
@@ -35,6 +35,7 @@
#include "core/loader/HistoryItem.h"
#include "platform/network/FormData.h"
#include "platform/weborigin/KURL.h"
+#include "public/platform/WebFloatPoint.h"
#include "public/platform/WebHTTPBody.h"
#include "public/platform/WebPoint.h"
#include "public/platform/WebString.h"
@@ -119,6 +120,16 @@ void WebHistoryItem::setTarget(const WebString& target)
m_private->setTarget(target);
}
+WebFloatPoint WebHistoryItem::pinchViewportScrollOffset() const
+{
+ return m_private->pinchViewportScrollPoint();
+}
+
+void WebHistoryItem::setPinchViewportScrollOffset(const WebFloatPoint& scrollOffset)
+{
+ m_private->setPinchViewportScrollPoint(scrollOffset);
+}
+
WebPoint WebHistoryItem::scrollOffset() const
{
return m_private->scrollPoint();

Powered by Google App Engine
This is Rietveld 408576698