| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_MOCKS_MOCK_WEBFRAME_H_ | 5 #ifndef WEBKIT_MOCKS_MOCK_WEBFRAME_H_ |
| 6 #define WEBKIT_MOCKS_MOCK_WEBFRAME_H_ | 6 #define WEBKIT_MOCKS_MOCK_WEBFRAME_H_ |
| 7 | 7 |
| 8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 virtual void cancelPendingScopingEffort(); | 190 virtual void cancelPendingScopingEffort(); |
| 191 virtual void increaseMatchCount(int count, int identifier); | 191 virtual void increaseMatchCount(int count, int identifier); |
| 192 virtual void resetMatchCount(); | 192 virtual void resetMatchCount(); |
| 193 virtual bool registerPasswordListener( | 193 virtual bool registerPasswordListener( |
| 194 WebInputElement, | 194 WebInputElement, |
| 195 WebPasswordAutocompleteListener*); | 195 WebPasswordAutocompleteListener*); |
| 196 virtual void notifiyPasswordListenerOfAutocomplete( | 196 virtual void notifiyPasswordListenerOfAutocomplete( |
| 197 const WebInputElement&); | 197 const WebInputElement&); |
| 198 virtual WebString contentAsText(size_t maxChars) const; | 198 virtual WebString contentAsText(size_t maxChars) const; |
| 199 virtual WebString contentAsMarkup() const; | 199 virtual WebString contentAsMarkup() const; |
| 200 virtual WebString renderTreeAsText(bool showDebugInfo) const; |
| 200 virtual WebString renderTreeAsText() const; | 201 virtual WebString renderTreeAsText() const; |
| 201 virtual WebString counterValueForElementById(const WebString& id) const; | 202 virtual WebString counterValueForElementById(const WebString& id) const; |
| 202 virtual WebString markerTextForListItem(const WebElement&) const; | 203 virtual WebString markerTextForListItem(const WebElement&) const; |
| 203 virtual int pageNumberForElementById(const WebString& id, | 204 virtual int pageNumberForElementById(const WebString& id, |
| 204 float pageWidthInPixels, | 205 float pageWidthInPixels, |
| 205 float pageHeightInPixels) const; | 206 float pageHeightInPixels) const; |
| 206 virtual WebRect selectionBoundsRect() const; | 207 virtual WebRect selectionBoundsRect() const; |
| 207 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const; | 208 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const; |
| 208 virtual bool pauseSVGAnimation(const WebString& animationId, | 209 virtual bool pauseSVGAnimation(const WebString& animationId, |
| 209 double time, | 210 double time, |
| 210 const WebString& elementId); | 211 const WebString& elementId); |
| 212 virtual WebString layerTreeAsText(bool showDebugInfo) const; |
| 211 virtual WebString layerTreeAsText() const; | 213 virtual WebString layerTreeAsText() const; |
| 212 | 214 |
| 213 private: | 215 private: |
| 214 DISALLOW_COPY_AND_ASSIGN(MockWebFrame); | 216 DISALLOW_COPY_AND_ASSIGN(MockWebFrame); |
| 215 }; | 217 }; |
| 216 | 218 |
| 217 } // namespace webkit_glue | 219 } // namespace webkit_glue |
| 218 | 220 |
| 219 #endif // WEBKIT_MOCKS_MOCK_WEBFRAME_H_ | 221 #endif // WEBKIT_MOCKS_MOCK_WEBFRAME_H_ |
| OLD | NEW |