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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |