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

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

Issue 2710063002: Revert of Add DidSaveScrollOrScaleState flag to prevent restoreScrollPosition... (Closed)
Patch Set: rebase update Created 3 years, 8 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 const Vector<String>& referenced_file_paths = 194 const Vector<String>& referenced_file_paths =
195 private_->GetReferencedFilePaths(); 195 private_->GetReferencedFilePaths();
196 for (size_t i = 0; i < referenced_file_paths.size(); ++i) 196 for (size_t i = 0; i < referenced_file_paths.size(); ++i)
197 file_paths.insert(referenced_file_paths[i]); 197 file_paths.insert(referenced_file_paths[i]);
198 198
199 Vector<String> results; 199 Vector<String> results;
200 CopyToVector(file_paths, results); 200 CopyToVector(file_paths, results);
201 return results; 201 return results;
202 } 202 }
203 203
204 bool WebHistoryItem::DidSaveScrollOrScaleState() const {
205 return private_->DidSaveScrollOrScaleState();
206 }
207
208 void WebHistoryItem::SetDidSaveScrollOrScaleState(
209 bool has_save_scroll_or_scale_state) {
210 private_->SetDidSaveScrollOrScaleState(has_save_scroll_or_scale_state);
211 }
212
213 WebHistoryItem::WebHistoryItem(HistoryItem* item) : private_(item) {} 204 WebHistoryItem::WebHistoryItem(HistoryItem* item) : private_(item) {}
214 205
215 WebHistoryItem& WebHistoryItem::operator=(HistoryItem* item) { 206 WebHistoryItem& WebHistoryItem::operator=(HistoryItem* item) {
216 private_ = item; 207 private_ = item;
217 return *this; 208 return *this;
218 } 209 }
219 210
220 WebHistoryItem::operator HistoryItem*() const { 211 WebHistoryItem::operator HistoryItem*() const {
221 return private_.Get(); 212 return private_.Get();
222 } 213 }
223 214
224 } // namespace blink 215 } // 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