OLD | NEW |
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 23 matching lines...) Expand all Loading... |
34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
35 #include "../platform/WebPrivatePtr.h" | 35 #include "../platform/WebPrivatePtr.h" |
36 #include "../platform/WebReferrerPolicy.h" | 36 #include "../platform/WebReferrerPolicy.h" |
37 | 37 |
38 namespace WebCore { class HistoryItem; } | 38 namespace WebCore { class HistoryItem; } |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 class WebHTTPBody; | 41 class WebHTTPBody; |
42 class WebString; | 42 class WebString; |
43 class WebSerializedScriptValue; | 43 class WebSerializedScriptValue; |
| 44 struct WebFloatPoint; |
44 struct WebPoint; | 45 struct WebPoint; |
45 template <typename T> class WebVector; | 46 template <typename T> class WebVector; |
46 | 47 |
47 enum WebHistoryLoadType { | 48 enum WebHistoryLoadType { |
48 WebHistorySameDocumentLoad, | 49 WebHistorySameDocumentLoad, |
49 WebHistoryDifferentDocumentLoad | 50 WebHistoryDifferentDocumentLoad |
50 }; | 51 }; |
51 | 52 |
52 // Represents a frame-level navigation entry in session history. A | 53 // Represents a frame-level navigation entry in session history. A |
53 // WebHistoryItem is a node in a tree. | 54 // WebHistoryItem is a node in a tree. |
(...skipping 21 matching lines...) Expand all Loading... |
75 BLINK_EXPORT WebString urlString() const; | 76 BLINK_EXPORT WebString urlString() const; |
76 BLINK_EXPORT void setURLString(const WebString&); | 77 BLINK_EXPORT void setURLString(const WebString&); |
77 | 78 |
78 BLINK_EXPORT WebString referrer() const; | 79 BLINK_EXPORT WebString referrer() const; |
79 BLINK_EXPORT WebReferrerPolicy referrerPolicy() const; | 80 BLINK_EXPORT WebReferrerPolicy referrerPolicy() const; |
80 BLINK_EXPORT void setReferrer(const WebString&, WebReferrerPolicy); | 81 BLINK_EXPORT void setReferrer(const WebString&, WebReferrerPolicy); |
81 | 82 |
82 BLINK_EXPORT WebString target() const; | 83 BLINK_EXPORT WebString target() const; |
83 BLINK_EXPORT void setTarget(const WebString&); | 84 BLINK_EXPORT void setTarget(const WebString&); |
84 | 85 |
| 86 BLINK_EXPORT WebFloatPoint pinchViewportScrollOffset() const; |
| 87 BLINK_EXPORT void setPinchViewportScrollOffset(const WebFloatPoint&); |
| 88 |
85 BLINK_EXPORT WebPoint scrollOffset() const; | 89 BLINK_EXPORT WebPoint scrollOffset() const; |
86 BLINK_EXPORT void setScrollOffset(const WebPoint&); | 90 BLINK_EXPORT void setScrollOffset(const WebPoint&); |
87 | 91 |
88 BLINK_EXPORT float pageScaleFactor() const; | 92 BLINK_EXPORT float pageScaleFactor() const; |
89 BLINK_EXPORT void setPageScaleFactor(float); | 93 BLINK_EXPORT void setPageScaleFactor(float); |
90 | 94 |
91 BLINK_EXPORT WebVector<WebString> documentState() const; | 95 BLINK_EXPORT WebVector<WebString> documentState() const; |
92 BLINK_EXPORT void setDocumentState(const WebVector<WebString>&); | 96 BLINK_EXPORT void setDocumentState(const WebVector<WebString>&); |
93 | 97 |
94 BLINK_EXPORT long long itemSequenceNumber() const; | 98 BLINK_EXPORT long long itemSequenceNumber() const; |
(...skipping 19 matching lines...) Expand all Loading... |
114 operator WTF::PassRefPtr<WebCore::HistoryItem>() const; | 118 operator WTF::PassRefPtr<WebCore::HistoryItem>() const; |
115 #endif | 119 #endif |
116 | 120 |
117 private: | 121 private: |
118 WebPrivatePtr<WebCore::HistoryItem> m_private; | 122 WebPrivatePtr<WebCore::HistoryItem> m_private; |
119 }; | 123 }; |
120 | 124 |
121 } // namespace blink | 125 } // namespace blink |
122 | 126 |
123 #endif | 127 #endif |
OLD | NEW |