OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ |
7 | 7 |
8 #include "android_webview/browser/browser_view_renderer_client.h" | 8 #include "android_webview/browser/browser_view_renderer_client.h" |
9 #include "android_webview/browser/test/fake_window.h" | 9 #include "android_webview/browser/test/fake_window.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 void PostInvalidate() override; | 35 void PostInvalidate() override; |
36 void DetachFunctorFromView() override; | 36 void DetachFunctorFromView() override; |
37 gfx::Point GetLocationOnScreen() override; | 37 gfx::Point GetLocationOnScreen() override; |
38 void ScrollContainerViewTo(gfx::Vector2d new_value) override {} | 38 void ScrollContainerViewTo(gfx::Vector2d new_value) override {} |
39 bool IsFlingActive() const override; | 39 bool IsFlingActive() const override; |
40 void UpdateScrollState(gfx::Vector2d max_scroll_offset, | 40 void UpdateScrollState(gfx::Vector2d max_scroll_offset, |
41 gfx::SizeF contents_size_dip, | 41 gfx::SizeF contents_size_dip, |
42 float page_scale_factor, | 42 float page_scale_factor, |
43 float min_page_scale_factor, | 43 float min_page_scale_factor, |
44 float max_page_scale_factor) override {} | 44 float max_page_scale_factor) override {} |
45 void DidOverscroll(gfx::Vector2d overscroll_delta) override {} | 45 void DidOverscroll(gfx::Vector2d overscroll_delta, |
| 46 gfx::Vector2dF overscroll_velocity, |
| 47 bool first_overscroll_x, |
| 48 bool first_overscroll_y) override {} |
46 void ParentDrawConstraintsUpdated( | 49 void ParentDrawConstraintsUpdated( |
47 const ParentCompositorDrawConstraints& draw_constraints) override {} | 50 const ParentCompositorDrawConstraints& draw_constraints) override {} |
48 // WindowHooks overrides. | 51 // WindowHooks overrides. |
49 void WillOnDraw() override {} | 52 void WillOnDraw() override {} |
50 void DidOnDraw(bool success) override {} | 53 void DidOnDraw(bool success) override {} |
51 void WillSyncOnRT(SharedRendererState* functor) override {} | 54 void WillSyncOnRT(SharedRendererState* functor) override {} |
52 void DidSyncOnRT(SharedRendererState* functor) override {} | 55 void DidSyncOnRT(SharedRendererState* functor) override {} |
53 void WillProcessOnRT(SharedRendererState* functor) override {} | 56 void WillProcessOnRT(SharedRendererState* functor) override {} |
54 void DidProcessOnRT(SharedRendererState* functor) override {} | 57 void DidProcessOnRT(SharedRendererState* functor) override {} |
55 bool WillDrawOnRT(SharedRendererState* functor, | 58 bool WillDrawOnRT(SharedRendererState* functor, |
(...skipping 25 matching lines...) Expand all Loading... |
81 DISALLOW_COPY_AND_ASSIGN(RenderingTest); | 84 DISALLOW_COPY_AND_ASSIGN(RenderingTest); |
82 }; | 85 }; |
83 | 86 |
84 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ | 87 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ |
85 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ | 88 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ |
86 class NeedsSemicolon##TEST_FIXTURE_NAME {} | 89 class NeedsSemicolon##TEST_FIXTURE_NAME {} |
87 | 90 |
88 } // namespace android_webview | 91 } // namespace android_webview |
89 | 92 |
90 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ | 93 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ |
OLD | NEW |