Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: webkit/mocks/mock_webframe.h

Issue 6538049: For webkit_glue::MockWebFrame, define setScrollOffset() that will be soon introduced. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/mocks/mock_webframe.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | webkit/mocks/mock_webframe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698