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

Unified Diff: public/platform/WebHistoryScrollRestorationType.h

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/WebHistoryItem.cpp ('k') | public/web/WebHistoryItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebHistoryScrollRestorationType.h
diff --git a/public/platform/WebImageGenerator.h b/public/platform/WebHistoryScrollRestorationType.h
similarity index 86%
copy from public/platform/WebImageGenerator.h
copy to public/platform/WebHistoryScrollRestorationType.h
index bb17f4d6df96a2dcc73efa069d2c6646a2338ab9..5f074041fcad3d49d58200fc5bcff515c2b4aa56 100644
--- a/public/platform/WebImageGenerator.h
+++ b/public/platform/WebHistoryScrollRestorationType.h
@@ -28,21 +28,16 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebImageGenerator_h
-#define WebImageGenerator_h
-
-#include "WebCommon.h"
-
-class SkData;
-class SkImageGenerator;
+#ifndef WebHistoryScrollRestorationType_h
+#define WebHistoryScrollRestorationType_h
namespace blink {
-class BLINK_EXPORT WebImageGenerator {
-public:
- static SkImageGenerator* create(SkData*);
+// Represents scroll restoration type for history item.
+enum WebHistoryScrollRestorationType {
+ WebHistoryScrollRestorationAuto,
+ WebHistoryScrollRestorationManual
};
} // namespace blink
-
#endif
« no previous file with comments | « Source/web/WebHistoryItem.cpp ('k') | public/web/WebHistoryItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698