Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: android_webview/browser/test/rendering_test.h

Issue 1063853005: Unify Android Webview and Chrome's fling (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: add proguard Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « android_webview/browser/browser_view_renderer_client.h ('k') | android_webview/browser/test/rendering_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698