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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "android_webview/browser/browser_view_renderer_client.h" | 10 #include "android_webview/browser/browser_view_renderer_client.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void ScrollContainerViewTo(const gfx::Vector2d& new_value) override {} | 44 void ScrollContainerViewTo(const gfx::Vector2d& new_value) override {} |
45 void UpdateScrollState(const gfx::Vector2d& max_scroll_offset, | 45 void UpdateScrollState(const gfx::Vector2d& max_scroll_offset, |
46 const gfx::SizeF& contents_size_dip, | 46 const gfx::SizeF& contents_size_dip, |
47 float page_scale_factor, | 47 float page_scale_factor, |
48 float min_page_scale_factor, | 48 float min_page_scale_factor, |
49 float max_page_scale_factor) override {} | 49 float max_page_scale_factor) override {} |
50 void DidOverscroll(const gfx::Vector2d& overscroll_delta, | 50 void DidOverscroll(const gfx::Vector2d& overscroll_delta, |
51 const gfx::Vector2dF& overscroll_velocity) override {} | 51 const gfx::Vector2dF& overscroll_velocity) override {} |
52 | 52 |
53 // RenderThreadManagerClient overrides. | 53 // RenderThreadManagerClient overrides. |
54 void OnParentDrawConstraintsUpdated() override; | |
55 bool RequestInvokeGL(bool wait_for_completion) override; | 54 bool RequestInvokeGL(bool wait_for_completion) override; |
56 void DetachFunctorFromView() override; | 55 void DetachFunctorFromView() override; |
57 | 56 |
58 // WindowHooks overrides. | 57 // WindowHooks overrides. |
59 void WillOnDraw() override; | 58 void WillOnDraw() override; |
60 void DidOnDraw(bool success) override {} | 59 void DidOnDraw(bool success) override {} |
61 void WillSyncOnRT(RenderThreadManager* functor) override {} | 60 void WillSyncOnRT(RenderThreadManager* functor) override {} |
62 void DidSyncOnRT(RenderThreadManager* functor) override {} | 61 void DidSyncOnRT(RenderThreadManager* functor) override {} |
63 void WillProcessOnRT(RenderThreadManager* functor) override {} | 62 void WillProcessOnRT(RenderThreadManager* functor) override {} |
64 void DidProcessOnRT(RenderThreadManager* functor) override {} | 63 void DidProcessOnRT(RenderThreadManager* functor) override {} |
65 bool WillDrawOnRT(RenderThreadManager* functor, | 64 bool WillDrawOnRT(RenderThreadManager* functor, |
66 AwDrawGLInfo* draw_info) override; | 65 AwDrawGLInfo* draw_info) override; |
67 void DidDrawOnRT(RenderThreadManager* functor) override {} | 66 void DidDrawOnRT(RenderThreadManager* functor) override {} |
68 | 67 |
| 68 virtual void OnParentDrawConstraintsUpdated() {} |
| 69 |
69 protected: | 70 protected: |
70 | 71 |
71 RenderingTest(); | 72 RenderingTest(); |
72 ~RenderingTest() override; | 73 ~RenderingTest() override; |
73 | 74 |
74 virtual void SetUpTestHarness(); | 75 virtual void SetUpTestHarness(); |
75 virtual void StartTest(); | 76 virtual void StartTest(); |
76 | 77 |
77 void RunTest(); | 78 void RunTest(); |
78 void InitializeCompositor(); | 79 void InitializeCompositor(); |
(...skipping 15 matching lines...) Expand all Loading... |
94 DISALLOW_COPY_AND_ASSIGN(RenderingTest); | 95 DISALLOW_COPY_AND_ASSIGN(RenderingTest); |
95 }; | 96 }; |
96 | 97 |
97 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ | 98 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ |
98 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ | 99 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ |
99 class NeedsSemicolon##TEST_FIXTURE_NAME {} | 100 class NeedsSemicolon##TEST_FIXTURE_NAME {} |
100 | 101 |
101 } // namespace android_webview | 102 } // namespace android_webview |
102 | 103 |
103 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ | 104 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ |
OLD | NEW |