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

Unified Diff: Source/web/WebHistoryItem.cpp

Issue 927213004: Accept options in history APIs to allow scroll restoration to be disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 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/web/AssertMatchingEnums.cpp ('k') | public/platform/WebHistoryScrollRestorationType.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 99623e7d00484eda86aa7858e2f1cd466313f97b..1c9a75115e6c133199a00952271e751858139780 100644
--- a/Source/web/WebHistoryItem.cpp
+++ b/Source/web/WebHistoryItem.cpp
@@ -169,6 +169,16 @@ void WebHistoryItem::setFrameSequenceNumber(long long frameSequenceNumber)
m_private->setFrameSequenceNumber(frameSequenceNumber);
}
+WebHistoryScrollRestorationType WebHistoryItem::scrollRestorationType() const
+{
+ return static_cast<WebHistoryScrollRestorationType>(m_private->scrollRestorationType());
+}
+
+void WebHistoryItem::setScrollRestorationType(WebHistoryScrollRestorationType type)
+{
+ m_private->setScrollRestorationType(static_cast<HistoryScrollRestorationType>(type));
+}
+
WebSerializedScriptValue WebHistoryItem::stateObject() const
{
return WebSerializedScriptValue(m_private->stateObject());
« no previous file with comments | « Source/web/AssertMatchingEnums.cpp ('k') | public/platform/WebHistoryScrollRestorationType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698