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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/web/AssertMatchingEnums.cpp ('k') | public/platform/WebHistoryScrollRestorationType.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 long long WebHistoryItem::frameSequenceNumber() const 162 long long WebHistoryItem::frameSequenceNumber() const
163 { 163 {
164 return m_private->frameSequenceNumber(); 164 return m_private->frameSequenceNumber();
165 } 165 }
166 166
167 void WebHistoryItem::setFrameSequenceNumber(long long frameSequenceNumber) 167 void WebHistoryItem::setFrameSequenceNumber(long long frameSequenceNumber)
168 { 168 {
169 m_private->setFrameSequenceNumber(frameSequenceNumber); 169 m_private->setFrameSequenceNumber(frameSequenceNumber);
170 } 170 }
171 171
172 WebHistoryScrollRestorationType WebHistoryItem::scrollRestorationType() const
173 {
174 return static_cast<WebHistoryScrollRestorationType>(m_private->scrollRestora tionType());
175 }
176
177 void WebHistoryItem::setScrollRestorationType(WebHistoryScrollRestorationType ty pe)
178 {
179 m_private->setScrollRestorationType(static_cast<HistoryScrollRestorationType >(type));
180 }
181
172 WebSerializedScriptValue WebHistoryItem::stateObject() const 182 WebSerializedScriptValue WebHistoryItem::stateObject() const
173 { 183 {
174 return WebSerializedScriptValue(m_private->stateObject()); 184 return WebSerializedScriptValue(m_private->stateObject());
175 } 185 }
176 186
177 void WebHistoryItem::setStateObject(const WebSerializedScriptValue& object) 187 void WebHistoryItem::setStateObject(const WebSerializedScriptValue& object)
178 { 188 {
179 m_private->setStateObject(object); 189 m_private->setStateObject(object);
180 } 190 }
181 191
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 m_private = item; 240 m_private = item;
231 return *this; 241 return *this;
232 } 242 }
233 243
234 WebHistoryItem::operator PassRefPtrWillBeRawPtr<HistoryItem>() const 244 WebHistoryItem::operator PassRefPtrWillBeRawPtr<HistoryItem>() const
235 { 245 {
236 return m_private.get(); 246 return m_private.get();
237 } 247 }
238 248
239 } // namespace blink 249 } // namespace blink
OLDNEW
« 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