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

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: Added backward compatibility, tests 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
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 27 matching lines...) Expand all
104 107
105 bool isCurrentDocument(Document*) const; 108 bool isCurrentDocument(Document*) const;
106 109
107 private: 110 private:
108 HistoryItem(); 111 HistoryItem();
109 112
110 String m_urlString; 113 String m_urlString;
111 Referrer m_referrer; 114 Referrer m_referrer;
112 String m_target; 115 String m_target;
113 116
117 FloatPoint m_pinchViewportScrollPoint;
114 IntPoint m_scrollPoint; 118 IntPoint m_scrollPoint;
115 float m_pageScaleFactor; 119 float m_pageScaleFactor;
116 Vector<String> m_documentStateVector; 120 Vector<String> m_documentStateVector;
117 RefPtr<DocumentState> m_documentState; 121 RefPtr<DocumentState> m_documentState;
118 122
119 HistoryItemVector m_children; 123 HistoryItemVector m_children;
120 124
121 // If two HistoryItems have the same item sequence number, then they are 125 // If two HistoryItems have the same item sequence number, then they are
122 // clones of one another. Traversing history from one such HistoryItem to 126 // clones of one another. Traversing history from one such HistoryItem to
123 // another is a no-op. HistoryItem clones are created for parent and 127 // another is a no-op. HistoryItem clones are created for parent and
(...skipping 10 matching lines...) Expand all
134 138
135 // info used to repost form data 139 // info used to repost form data
136 RefPtr<FormData> m_formData; 140 RefPtr<FormData> m_formData;
137 AtomicString m_formContentType; 141 AtomicString m_formContentType;
138 142
139 }; // class HistoryItem 143 }; // class HistoryItem
140 144
141 } // namespace WebCore 145 } // namespace WebCore
142 146
143 #endif // HISTORYITEM_H 147 #endif // HISTORYITEM_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698