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 #include "config.h" | 31 #include "config.h" |
32 #include "public/web/WebHistoryItem.h" | 32 #include "public/web/WebHistoryItem.h" |
33 | 33 |
34 #include "bindings/v8/SerializedScriptValue.h" | 34 #include "bindings/v8/SerializedScriptValue.h" |
35 #include "core/loader/HistoryItem.h" | 35 #include "core/loader/HistoryItem.h" |
36 #include "platform/network/FormData.h" | 36 #include "platform/network/FormData.h" |
37 #include "platform/weborigin/KURL.h" | 37 #include "platform/weborigin/KURL.h" |
| 38 #include "public/platform/WebFloatPoint.h" |
38 #include "public/platform/WebHTTPBody.h" | 39 #include "public/platform/WebHTTPBody.h" |
39 #include "public/platform/WebPoint.h" | 40 #include "public/platform/WebPoint.h" |
40 #include "public/platform/WebString.h" | 41 #include "public/platform/WebString.h" |
41 #include "public/platform/WebVector.h" | 42 #include "public/platform/WebVector.h" |
42 #include "public/web/WebSerializedScriptValue.h" | 43 #include "public/web/WebSerializedScriptValue.h" |
43 #include "wtf/text/StringHash.h" | 44 #include "wtf/text/StringHash.h" |
44 | 45 |
45 using namespace WebCore; | 46 using namespace WebCore; |
46 | 47 |
47 namespace blink { | 48 namespace blink { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 WebString WebHistoryItem::target() const | 90 WebString WebHistoryItem::target() const |
90 { | 91 { |
91 return m_private->target(); | 92 return m_private->target(); |
92 } | 93 } |
93 | 94 |
94 void WebHistoryItem::setTarget(const WebString& target) | 95 void WebHistoryItem::setTarget(const WebString& target) |
95 { | 96 { |
96 m_private->setTarget(target); | 97 m_private->setTarget(target); |
97 } | 98 } |
98 | 99 |
| 100 WebFloatPoint WebHistoryItem::pinchViewportScrollOffset() const |
| 101 { |
| 102 return m_private->pinchViewportScrollPoint(); |
| 103 } |
| 104 |
| 105 void WebHistoryItem::setPinchViewportScrollOffset(const WebFloatPoint& scrollOff
set) |
| 106 { |
| 107 m_private->setPinchViewportScrollPoint(scrollOffset); |
| 108 } |
| 109 |
99 WebPoint WebHistoryItem::scrollOffset() const | 110 WebPoint WebHistoryItem::scrollOffset() const |
100 { | 111 { |
101 return m_private->scrollPoint(); | 112 return m_private->scrollPoint(); |
102 } | 113 } |
103 | 114 |
104 void WebHistoryItem::setScrollOffset(const WebPoint& scrollOffset) | 115 void WebHistoryItem::setScrollOffset(const WebPoint& scrollOffset) |
105 { | 116 { |
106 m_private->setScrollPoint(scrollOffset); | 117 m_private->setScrollPoint(scrollOffset); |
107 } | 118 } |
108 | 119 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 m_private = item; | 222 m_private = item; |
212 return *this; | 223 return *this; |
213 } | 224 } |
214 | 225 |
215 WebHistoryItem::operator PassRefPtr<HistoryItem>() const | 226 WebHistoryItem::operator PassRefPtr<HistoryItem>() const |
216 { | 227 { |
217 return m_private.get(); | 228 return m_private.get(); |
218 } | 229 } |
219 | 230 |
220 } // namespace blink | 231 } // namespace blink |
OLD | NEW |