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

Side by Side Diff: third_party/WebKit/Source/web/WebHistoryItem.cpp

Issue 2628683003: Add DidSaveScrollOrScaleState flag to prevent restoreScrollPositionAndViewState restore from default (Closed)
Patch Set: add dump file Created 3 years, 10 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
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 const Vector<String>& referencedFilePaths = 191 const Vector<String>& referencedFilePaths =
192 m_private->getReferencedFilePaths(); 192 m_private->getReferencedFilePaths();
193 for (size_t i = 0; i < referencedFilePaths.size(); ++i) 193 for (size_t i = 0; i < referencedFilePaths.size(); ++i)
194 filePaths.insert(referencedFilePaths[i]); 194 filePaths.insert(referencedFilePaths[i]);
195 195
196 Vector<String> results; 196 Vector<String> results;
197 copyToVector(filePaths, results); 197 copyToVector(filePaths, results);
198 return results; 198 return results;
199 } 199 }
200 200
201 bool WebHistoryItem::didSaveScrollOrScaleState() const {
202 return m_private->didSaveScrollOrScaleState();
203 }
204
205 void WebHistoryItem::setDidSaveScrollOrScaleState(
206 bool hasSaveScrollOrScaleState) {
207 m_private->setDidSaveScrollOrScaleState(hasSaveScrollOrScaleState);
208 }
209
201 WebHistoryItem::WebHistoryItem(HistoryItem* item) : m_private(item) {} 210 WebHistoryItem::WebHistoryItem(HistoryItem* item) : m_private(item) {}
202 211
203 WebHistoryItem& WebHistoryItem::operator=(HistoryItem* item) { 212 WebHistoryItem& WebHistoryItem::operator=(HistoryItem* item) {
204 m_private = item; 213 m_private = item;
205 return *this; 214 return *this;
206 } 215 }
207 216
208 WebHistoryItem::operator HistoryItem*() const { 217 WebHistoryItem::operator HistoryItem*() const {
209 return m_private.get(); 218 return m_private.get();
210 } 219 }
211 220
212 } // namespace blink 221 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/HistoryItem.cpp ('k') | third_party/WebKit/public/web/WebHistoryItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698