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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebHistoryItem_h | 31 #ifndef WebHistoryItem_h |
32 #define WebHistoryItem_h | 32 #define WebHistoryItem_h |
33 | 33 |
34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
35 #include "../platform/WebHistoryScrollRestorationType.h" | 35 #include "../platform/WebHistoryScrollRestorationType.h" |
36 #include "../platform/WebPrivatePtr.h" | 36 #include "../platform/WebPrivatePtr.h" |
37 #include "../platform/WebReferrerPolicy.h" | 37 #include "../platform/WebReferrerPolicy.h" |
| 38 #include "public/platform/WebString.h" |
38 | 39 |
39 namespace blink { | 40 namespace blink { |
40 | 41 |
41 class HistoryItem; | 42 class HistoryItem; |
42 class WebHTTPBody; | 43 class WebHTTPBody; |
43 class WebString; | 44 class WebString; |
44 class WebSerializedScriptValue; | 45 class WebSerializedScriptValue; |
45 struct WebFloatPoint; | 46 struct WebFloatPoint; |
46 struct WebPoint; | 47 struct WebPoint; |
47 template <typename T> | 48 template <typename T> |
(...skipping 26 matching lines...) Expand all Loading... |
74 | 75 |
75 bool isNull() const { return m_private.isNull(); } | 76 bool isNull() const { return m_private.isNull(); } |
76 | 77 |
77 BLINK_EXPORT WebString urlString() const; | 78 BLINK_EXPORT WebString urlString() const; |
78 BLINK_EXPORT void setURLString(const WebString&); | 79 BLINK_EXPORT void setURLString(const WebString&); |
79 | 80 |
80 BLINK_EXPORT WebString referrer() const; | 81 BLINK_EXPORT WebString referrer() const; |
81 BLINK_EXPORT WebReferrerPolicy getReferrerPolicy() const; | 82 BLINK_EXPORT WebReferrerPolicy getReferrerPolicy() const; |
82 BLINK_EXPORT void setReferrer(const WebString&, WebReferrerPolicy); | 83 BLINK_EXPORT void setReferrer(const WebString&, WebReferrerPolicy); |
83 | 84 |
84 BLINK_EXPORT WebString target() const; | 85 BLINK_EXPORT const WebString& target() const; |
85 BLINK_EXPORT void setTarget(const WebString&); | 86 BLINK_EXPORT void setTarget(const WebString&); |
86 | 87 |
87 BLINK_EXPORT WebFloatPoint visualViewportScrollOffset() const; | 88 BLINK_EXPORT WebFloatPoint visualViewportScrollOffset() const; |
88 BLINK_EXPORT void setVisualViewportScrollOffset(const WebFloatPoint&); | 89 BLINK_EXPORT void setVisualViewportScrollOffset(const WebFloatPoint&); |
89 | 90 |
90 BLINK_EXPORT WebPoint getScrollOffset() const; | 91 BLINK_EXPORT WebPoint getScrollOffset() const; |
91 BLINK_EXPORT void setScrollOffset(const WebPoint&); | 92 BLINK_EXPORT void setScrollOffset(const WebPoint&); |
92 | 93 |
93 BLINK_EXPORT float pageScaleFactor() const; | 94 BLINK_EXPORT float pageScaleFactor() const; |
94 BLINK_EXPORT void setPageScaleFactor(float); | 95 BLINK_EXPORT void setPageScaleFactor(float); |
(...skipping 25 matching lines...) Expand all Loading... |
120 BLINK_EXPORT void setDidSaveScrollOrScaleState(bool); | 121 BLINK_EXPORT void setDidSaveScrollOrScaleState(bool); |
121 | 122 |
122 #if BLINK_IMPLEMENTATION | 123 #if BLINK_IMPLEMENTATION |
123 BLINK_EXPORT WebHistoryItem(HistoryItem*); | 124 BLINK_EXPORT WebHistoryItem(HistoryItem*); |
124 BLINK_EXPORT WebHistoryItem& operator=(HistoryItem*); | 125 BLINK_EXPORT WebHistoryItem& operator=(HistoryItem*); |
125 BLINK_EXPORT operator HistoryItem*() const; | 126 BLINK_EXPORT operator HistoryItem*() const; |
126 #endif | 127 #endif |
127 | 128 |
128 private: | 129 private: |
129 WebPrivatePtr<HistoryItem> m_private; | 130 WebPrivatePtr<HistoryItem> m_private; |
| 131 // TODO(dcheng): Remove this, since unique name is no longer a Blink concept. |
| 132 WebString m_target; |
130 }; | 133 }; |
131 | 134 |
132 } // namespace blink | 135 } // namespace blink |
133 | 136 |
134 #endif | 137 #endif |
OLD | NEW |