| 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 18 matching lines...) Expand all Loading... |
| 29 public BrowserViewRendererClient, | 29 public BrowserViewRendererClient, |
| 30 public WindowHooks { | 30 public WindowHooks { |
| 31 public: | 31 public: |
| 32 // BrowserViewRendererClient overrides. | 32 // BrowserViewRendererClient overrides. |
| 33 bool RequestDrawGL(bool wait_for_completion) override; | 33 bool RequestDrawGL(bool wait_for_completion) override; |
| 34 void OnNewPicture() override; | 34 void OnNewPicture() override; |
| 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 IsSmoothScrollingActive() 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) override {} |
| 46 void ParentDrawConstraintsUpdated( | 47 void ParentDrawConstraintsUpdated( |
| 47 const ParentCompositorDrawConstraints& draw_constraints) override {} | 48 const ParentCompositorDrawConstraints& draw_constraints) override {} |
| 48 // WindowHooks overrides. | 49 // WindowHooks overrides. |
| 49 void WillOnDraw() override {} | 50 void WillOnDraw() override {} |
| 50 void DidOnDraw(bool success) override {} | 51 void DidOnDraw(bool success) override {} |
| 51 void WillSyncOnRT(SharedRendererState* functor) override {} | 52 void WillSyncOnRT(SharedRendererState* functor) override {} |
| 52 void DidSyncOnRT(SharedRendererState* functor) override {} | 53 void DidSyncOnRT(SharedRendererState* functor) override {} |
| 53 void WillProcessOnRT(SharedRendererState* functor) override {} | 54 void WillProcessOnRT(SharedRendererState* functor) override {} |
| 54 void DidProcessOnRT(SharedRendererState* functor) override {} | 55 void DidProcessOnRT(SharedRendererState* functor) override {} |
| 55 bool WillDrawOnRT(SharedRendererState* functor, | 56 bool WillDrawOnRT(SharedRendererState* functor, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 81 DISALLOW_COPY_AND_ASSIGN(RenderingTest); | 82 DISALLOW_COPY_AND_ASSIGN(RenderingTest); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ | 85 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ |
| 85 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ | 86 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ |
| 86 class NeedsSemicolon##TEST_FIXTURE_NAME {} | 87 class NeedsSemicolon##TEST_FIXTURE_NAME {} |
| 87 | 88 |
| 88 } // namespace android_webview | 89 } // namespace android_webview |
| 89 | 90 |
| 90 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ | 91 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ |
| OLD | NEW |