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

Unified Diff: ios/web/public/web_state/page_display_state.h

Issue 2664113003: Moved serialization out of CRWSessionEntry. (Closed)
Patch Set: Eugene's comments Created 3 years, 11 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 | « ios/web/public/navigation_item.h ('k') | ios/web/public/web_state/page_display_state.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_state/page_display_state.h
diff --git a/ios/web/public/web_state/page_display_state.h b/ios/web/public/web_state/page_display_state.h
index a9e8802092d56cce1ad84de47c218226f22a4a46..bb5d3385a1aaf507b353b188f3062540c314af00 100644
--- a/ios/web/public/web_state/page_display_state.h
+++ b/ios/web/public/web_state/page_display_state.h
@@ -5,6 +5,8 @@
#ifndef IOS_WEB_PUBLIC_WEB_STATE_PAGE_DISPLAY_STATE_H_
#define IOS_WEB_PUBLIC_WEB_STATE_PAGE_DISPLAY_STATE_H_
+#import <Foundation/Foundation.h>
+
namespace web {
// Class used to represent the scrolling offset of a webview.
@@ -96,6 +98,7 @@ class PageDisplayState {
double minimum_zoom_scale,
double maximum_zoom_scale,
double zoom_scale);
+ PageDisplayState(NSDictionary* serialization);
~PageDisplayState();
// PageScrollStates cannot be applied until the scroll offset and zoom scale
@@ -118,6 +121,12 @@ class PageDisplayState {
bool operator==(const PageDisplayState& other) const;
bool operator!=(const PageDisplayState& other) const;
+ // Returns a serialized representation of the PageDisplayState.
+ NSDictionary* GetSerialization() const;
+
+ // Returns a description string for the PageDisplayState.
+ NSString* GetDescription() const;
+
private:
// The scroll state for the page's UIScrollView.
PageScrollState scroll_state_;
« no previous file with comments | « ios/web/public/navigation_item.h ('k') | ios/web/public/web_state/page_display_state.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698