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

Side by Side Diff: Source/core/loader/HistoryItem.h

Issue 263853008: Added pinch viewport offset to history item. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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/core/loader/FrameLoader.cpp ('k') | Source/core/loader/HistoryItem.cpp » ('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) 2006, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 10 matching lines...) Expand all
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef HistoryItem_h 27 #ifndef HistoryItem_h
28 #define HistoryItem_h 28 #define HistoryItem_h
29 29
30 #include "bindings/v8/SerializedScriptValue.h" 30 #include "bindings/v8/SerializedScriptValue.h"
31 #include "platform/geometry/FloatPoint.h"
31 #include "platform/geometry/IntPoint.h" 32 #include "platform/geometry/IntPoint.h"
32 #include "platform/weborigin/Referrer.h" 33 #include "platform/weborigin/Referrer.h"
33 #include "wtf/RefCounted.h" 34 #include "wtf/RefCounted.h"
34 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
35 36
36 namespace WebCore { 37 namespace WebCore {
37 38
38 class Document; 39 class Document;
39 class DocumentState; 40 class DocumentState;
40 class FormData; 41 class FormData;
(...skipping 16 matching lines...) Expand all
57 58
58 const String& urlString() const; 59 const String& urlString() const;
59 KURL url() const; 60 KURL url() const;
60 61
61 const Referrer& referrer() const; 62 const Referrer& referrer() const;
62 const String& target() const; 63 const String& target() const;
63 64
64 FormData* formData(); 65 FormData* formData();
65 const AtomicString& formContentType() const; 66 const AtomicString& formContentType() const;
66 67
68 const FloatPoint& pinchViewportScrollPoint() const;
69 void setPinchViewportScrollPoint(const FloatPoint&);
67 const IntPoint& scrollPoint() const; 70 const IntPoint& scrollPoint() const;
68 void setScrollPoint(const IntPoint&); 71 void setScrollPoint(const IntPoint&);
69 void clearScrollPoint(); 72 void clearScrollPoint();
70 73
71 float pageScaleFactor() const; 74 float pageScaleFactor() const;
72 void setPageScaleFactor(float); 75 void setPageScaleFactor(float);
73 76
74 Vector<String> getReferencedFilePaths(); 77 Vector<String> getReferencedFilePaths();
75 const Vector<String>& documentState(); 78 const Vector<String>& documentState();
76 void setDocumentState(const Vector<String>&); 79 void setDocumentState(const Vector<String>&);
(...skipping 20 matching lines...) Expand all
97 100
98 bool isCurrentDocument(Document*) const; 101 bool isCurrentDocument(Document*) const;
99 102
100 private: 103 private:
101 HistoryItem(); 104 HistoryItem();
102 105
103 String m_urlString; 106 String m_urlString;
104 Referrer m_referrer; 107 Referrer m_referrer;
105 String m_target; 108 String m_target;
106 109
110 FloatPoint m_pinchViewportScrollPoint;
107 IntPoint m_scrollPoint; 111 IntPoint m_scrollPoint;
108 float m_pageScaleFactor; 112 float m_pageScaleFactor;
109 Vector<String> m_documentStateVector; 113 Vector<String> m_documentStateVector;
110 RefPtrWillBePersistent<DocumentState> m_documentState; 114 RefPtrWillBePersistent<DocumentState> m_documentState;
111 115
112 // If two HistoryItems have the same item sequence number, then they are 116 // If two HistoryItems have the same item sequence number, then they are
113 // clones of one another. Traversing history from one such HistoryItem to 117 // clones of one another. Traversing history from one such HistoryItem to
114 // another is a no-op. HistoryItem clones are created for parent and 118 // another is a no-op. HistoryItem clones are created for parent and
115 // sibling frames when only a subframe navigates. 119 // sibling frames when only a subframe navigates.
116 int64_t m_itemSequenceNumber; 120 int64_t m_itemSequenceNumber;
117 121
118 // If two HistoryItems have the same document sequence number, then they 122 // If two HistoryItems have the same document sequence number, then they
119 // refer to the same instance of a document. Traversing history from one 123 // refer to the same instance of a document. Traversing history from one
120 // such HistoryItem to another preserves the document. 124 // such HistoryItem to another preserves the document.
121 int64_t m_documentSequenceNumber; 125 int64_t m_documentSequenceNumber;
122 126
123 // Support for HTML5 History 127 // Support for HTML5 History
124 RefPtr<SerializedScriptValue> m_stateObject; 128 RefPtr<SerializedScriptValue> m_stateObject;
125 129
126 // info used to repost form data 130 // info used to repost form data
127 RefPtr<FormData> m_formData; 131 RefPtr<FormData> m_formData;
128 AtomicString m_formContentType; 132 AtomicString m_formContentType;
129 133
130 }; // class HistoryItem 134 }; // class HistoryItem
131 135
132 } // namespace WebCore 136 } // namespace WebCore
133 137
134 #endif // HISTORYITEM_H 138 #endif // HISTORYITEM_H
OLDNEW
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | Source/core/loader/HistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698