| 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 IsSmoothScrollingActive() const override; | |
| 40 void UpdateScrollState(gfx::Vector2d max_scroll_offset, | 39 void UpdateScrollState(gfx::Vector2d max_scroll_offset, |
| 41 gfx::SizeF contents_size_dip, | 40 gfx::SizeF contents_size_dip, |
| 42 float page_scale_factor, | 41 float page_scale_factor, |
| 43 float min_page_scale_factor, | 42 float min_page_scale_factor, |
| 44 float max_page_scale_factor) override {} | 43 float max_page_scale_factor) override {} |
| 45 void DidOverscroll(gfx::Vector2d overscroll_delta, | 44 void DidOverscroll(gfx::Vector2d overscroll_delta, |
| 46 gfx::Vector2dF overscroll_velocity) override {} | 45 gfx::Vector2dF overscroll_velocity) override {} |
| 47 void ParentDrawConstraintsUpdated( | 46 void ParentDrawConstraintsUpdated( |
| 48 const ParentCompositorDrawConstraints& draw_constraints) override {} | 47 const ParentCompositorDrawConstraints& draw_constraints) override {} |
| 49 // WindowHooks overrides. | 48 // WindowHooks overrides. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 DISALLOW_COPY_AND_ASSIGN(RenderingTest); | 81 DISALLOW_COPY_AND_ASSIGN(RenderingTest); |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ | 84 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ |
| 86 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ | 85 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ |
| 87 class NeedsSemicolon##TEST_FIXTURE_NAME {} | 86 class NeedsSemicolon##TEST_FIXTURE_NAME {} |
| 88 | 87 |
| 89 } // namespace android_webview | 88 } // namespace android_webview |
| 90 | 89 |
| 91 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ | 90 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ |
| OLD | NEW |