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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 } | 106 } |
107 | 107 |
108 float WebHistoryItem::pageScaleFactor() const { | 108 float WebHistoryItem::pageScaleFactor() const { |
109 return m_private->pageScaleFactor(); | 109 return m_private->pageScaleFactor(); |
110 } | 110 } |
111 | 111 |
112 void WebHistoryItem::setPageScaleFactor(float scale) { | 112 void WebHistoryItem::setPageScaleFactor(float scale) { |
113 m_private->setPageScaleFactor(scale); | 113 m_private->setPageScaleFactor(scale); |
114 } | 114 } |
115 | 115 |
116 WebVector<WebString> WebHistoryItem::documentState() const { | 116 WebVector<WebString> WebHistoryItem::getDocumentState() const { |
117 return m_private->documentState(); | 117 return m_private->getDocumentState(); |
118 } | 118 } |
119 | 119 |
120 void WebHistoryItem::setDocumentState(const WebVector<WebString>& state) { | 120 void WebHistoryItem::setDocumentState(const WebVector<WebString>& state) { |
121 // FIXME: would be nice to avoid the intermediate copy | 121 // FIXME: would be nice to avoid the intermediate copy |
122 Vector<String> ds; | 122 Vector<String> ds; |
123 for (size_t i = 0; i < state.size(); ++i) | 123 for (size_t i = 0; i < state.size(); ++i) |
124 ds.append(state[i]); | 124 ds.append(state[i]); |
125 m_private->setDocumentState(ds); | 125 m_private->setDocumentState(ds); |
126 } | 126 } |
127 | 127 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 WebHistoryItem& WebHistoryItem::operator=(HistoryItem* item) { | 203 WebHistoryItem& WebHistoryItem::operator=(HistoryItem* item) { |
204 m_private = item; | 204 m_private = item; |
205 return *this; | 205 return *this; |
206 } | 206 } |
207 | 207 |
208 WebHistoryItem::operator HistoryItem*() const { | 208 WebHistoryItem::operator HistoryItem*() const { |
209 return m_private.get(); | 209 return m_private.get(); |
210 } | 210 } |
211 | 211 |
212 } // namespace blink | 212 } // namespace blink |
OLD | NEW |