| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 virtual WebString name() const; | 65 virtual WebString name() const; |
| 66 virtual void setName(const WebString&); | 66 virtual void setName(const WebString&); |
| 67 virtual long long identifier() const; | 67 virtual long long identifier() const; |
| 68 virtual WebURL url() const; | 68 virtual WebURL url() const; |
| 69 virtual WebURL favIconURL() const; | 69 virtual WebURL favIconURL() const; |
| 70 virtual WebURL openSearchDescriptionURL() const; | 70 virtual WebURL openSearchDescriptionURL() const; |
| 71 virtual WebString encoding() const; | 71 virtual WebString encoding() const; |
| 72 virtual void setCanHaveScrollbars(bool); | 72 virtual void setCanHaveScrollbars(bool); |
| 73 virtual WebSize scrollOffset() const; | 73 virtual WebSize scrollOffset() const; |
| 74 virtual void setScrollOffset(const WebSize&); |
| 74 virtual WebSize contentsSize() const; | 75 virtual WebSize contentsSize() const; |
| 75 virtual int contentsPreferredWidth() const; | 76 virtual int contentsPreferredWidth() const; |
| 76 virtual int documentElementScrollHeight() const; | 77 virtual int documentElementScrollHeight() const; |
| 77 virtual bool hasVisibleContent() const; | 78 virtual bool hasVisibleContent() const; |
| 78 virtual WebView* view() const; | 79 virtual WebView* view() const; |
| 79 virtual WebFrame* opener() const; | 80 virtual WebFrame* opener() const; |
| 80 virtual WebFrame* parent() const; | 81 virtual WebFrame* parent() const; |
| 81 virtual WebFrame* top() const; | 82 virtual WebFrame* top() const; |
| 82 virtual WebFrame* firstChild() const; | 83 virtual WebFrame* firstChild() const; |
| 83 virtual WebFrame* lastChild() const; | 84 virtual WebFrame* lastChild() const; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 const WebString& elementId); | 206 const WebString& elementId); |
| 206 virtual WebString layerTreeAsText() const; | 207 virtual WebString layerTreeAsText() const; |
| 207 | 208 |
| 208 private: | 209 private: |
| 209 DISALLOW_COPY_AND_ASSIGN(MockWebFrame); | 210 DISALLOW_COPY_AND_ASSIGN(MockWebFrame); |
| 210 }; | 211 }; |
| 211 | 212 |
| 212 } // namespace webkit_glue | 213 } // namespace webkit_glue |
| 213 | 214 |
| 214 #endif // WEBKIT_MOCKS_MOCK_WEBFRAME_H_ | 215 #endif // WEBKIT_MOCKS_MOCK_WEBFRAME_H_ |
| OLD | NEW |