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

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

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 | « webkit/mocks/mock_webframe.h ('k') | no next file » | 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 #include "webkit/mocks/mock_webframe.h" 5 #include "webkit/mocks/mock_webframe.h"
6 6
7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
8 8
9 namespace webkit_glue { 9 namespace webkit_glue {
10 10
(...skipping 26 matching lines...) Expand all
37 WebString MockWebFrame::encoding() const { 37 WebString MockWebFrame::encoding() const {
38 return WebString(); 38 return WebString();
39 } 39 }
40 40
41 void MockWebFrame::setCanHaveScrollbars(bool) {} 41 void MockWebFrame::setCanHaveScrollbars(bool) {}
42 42
43 WebSize MockWebFrame::scrollOffset() const { 43 WebSize MockWebFrame::scrollOffset() const {
44 return WebSize(0,0); 44 return WebSize(0,0);
45 } 45 }
46 46
47 void MockWebFrame::setScrollOffset(const WebSize&) {}
48
47 WebSize MockWebFrame::contentsSize() const { 49 WebSize MockWebFrame::contentsSize() const {
48 return WebSize(); 50 return WebSize();
49 } 51 }
50 52
51 int MockWebFrame::contentsPreferredWidth() const { 53 int MockWebFrame::contentsPreferredWidth() const {
52 return 0; 54 return 0;
53 } 55 }
54 56
55 int MockWebFrame::documentElementScrollHeight() const { 57 int MockWebFrame::documentElementScrollHeight() const {
56 return 0; 58 return 0;
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 double time, 386 double time,
385 const WebString& elementId) { 387 const WebString& elementId) {
386 return false; 388 return false;
387 } 389 }
388 390
389 WebString MockWebFrame::layerTreeAsText() const { 391 WebString MockWebFrame::layerTreeAsText() const {
390 return WebString(); 392 return WebString();
391 } 393 }
392 394
393 } // namespace webkit_glue 395 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/mocks/mock_webframe.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698