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

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: 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
« no previous file with comments | « Source/core/page/Page.cpp ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebHistoryItem.cpp
diff --git a/Source/web/WebHistoryItem.cpp b/Source/web/WebHistoryItem.cpp
index 66ac93fd633966aaac2a5a0ac0f0e63a68b4c392..ad68b65ecbcfe68a5d31fe17ed8b20f375a10898 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"
@@ -96,6 +97,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();
« no previous file with comments | « Source/core/page/Page.cpp ('k') | Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698