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

Side by Side Diff: android_webview/browser/browser_view_renderer.h

Issue 1251323002: Plumb smooth scrolling in Chromium compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BROWSER_VIEW_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
7 7
8 #include "android_webview/browser/parent_compositor_draw_constraints.h" 8 #include "android_webview/browser/parent_compositor_draw_constraints.h"
9 #include "android_webview/browser/shared_renderer_state.h" 9 #include "android_webview/browser/shared_renderer_state.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 content::SynchronousCompositor* compositor) override; 100 content::SynchronousCompositor* compositor) override;
101 void PostInvalidate() override; 101 void PostInvalidate() override;
102 void DidUpdateContent() override; 102 void DidUpdateContent() override;
103 gfx::Vector2dF GetTotalRootLayerScrollOffset() override; 103 gfx::Vector2dF GetTotalRootLayerScrollOffset() override;
104 void UpdateRootLayerState(const gfx::Vector2dF& total_scroll_offset_dip, 104 void UpdateRootLayerState(const gfx::Vector2dF& total_scroll_offset_dip,
105 const gfx::Vector2dF& max_scroll_offset_dip, 105 const gfx::Vector2dF& max_scroll_offset_dip,
106 const gfx::SizeF& scrollable_size_dip, 106 const gfx::SizeF& scrollable_size_dip,
107 float page_scale_factor, 107 float page_scale_factor,
108 float min_page_scale_factor, 108 float min_page_scale_factor,
109 float max_page_scale_factor) override; 109 float max_page_scale_factor) override;
110 bool IsExternalScrollActive() const override;
111 void SetNeedsAnimateScroll( 110 void SetNeedsAnimateScroll(
112 const AnimationCallback& scroll_animation) override; 111 const AnimationCallback& scroll_animation) override;
113 void DidOverscroll(gfx::Vector2dF accumulated_overscroll, 112 void DidOverscroll(gfx::Vector2dF accumulated_overscroll,
114 gfx::Vector2dF latest_overscroll_delta, 113 gfx::Vector2dF latest_overscroll_delta,
115 gfx::Vector2dF current_fling_velocity) override; 114 gfx::Vector2dF current_fling_velocity) override;
116 115
117 void UpdateParentDrawConstraints(); 116 void UpdateParentDrawConstraints();
118 void DetachFunctorFromView(); 117 void DetachFunctorFromView();
119 118
120 private: 119 private:
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // visible skew (especially noticeable when scrolling up and down in the same 196 // visible skew (especially noticeable when scrolling up and down in the same
198 // spot over a period of time). 197 // spot over a period of time).
199 gfx::Vector2dF overscroll_rounding_error_; 198 gfx::Vector2dF overscroll_rounding_error_;
200 199
201 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 200 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
202 }; 201 };
203 202
204 } // namespace android_webview 203 } // namespace android_webview
205 204
206 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 205 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer.cc » ('j') | content/renderer/input/input_handler_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698