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

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: rebase again Created 5 years, 3 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
« no previous file with comments | « no previous file | android_webview/browser/renderer_host/aw_render_view_host_ext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void SetViewVisibility(bool visible); 72 void SetViewVisibility(bool visible);
73 void SetWindowVisibility(bool visible); 73 void SetWindowVisibility(bool visible);
74 void OnSizeChanged(int width, int height); 74 void OnSizeChanged(int width, int height);
75 void OnAttachedToWindow(int width, int height); 75 void OnAttachedToWindow(int width, int height);
76 void OnDetachedFromWindow(); 76 void OnDetachedFromWindow();
77 void OnComputeScroll(base::TimeTicks animation_time); 77 void OnComputeScroll(base::TimeTicks animation_time);
78 78
79 // Sets the scale for logical<->physical pixel conversions. 79 // Sets the scale for logical<->physical pixel conversions.
80 void SetDipScale(float dip_scale); 80 void SetDipScale(float dip_scale);
81 float dip_scale() const { return dip_scale_; } 81 float dip_scale() const { return dip_scale_; }
82 float page_scale_factor() const { return page_scale_factor_; }
82 83
83 // Set the root layer scroll offset to |new_value|. 84 // Set the root layer scroll offset to |new_value|.
84 void ScrollTo(gfx::Vector2d new_value); 85 void ScrollTo(gfx::Vector2d new_value);
85 86
86 // Android views hierarchy gluing. 87 // Android views hierarchy gluing.
87 bool IsVisible() const; 88 bool IsVisible() const;
88 gfx::Rect GetScreenRect() const; 89 gfx::Rect GetScreenRect() const;
89 bool attached_to_window() const { return attached_to_window_; } 90 bool attached_to_window() const { return attached_to_window_; }
90 bool hardware_enabled() const { return hardware_enabled_; } 91 bool hardware_enabled() const { return hardware_enabled_; }
91 gfx::Size size() const { return size_; } 92 gfx::Size size() const { return size_; }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // visible skew (especially noticeable when scrolling up and down in the same 197 // visible skew (especially noticeable when scrolling up and down in the same
197 // spot over a period of time). 198 // spot over a period of time).
198 gfx::Vector2dF overscroll_rounding_error_; 199 gfx::Vector2dF overscroll_rounding_error_;
199 200
200 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 201 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
201 }; 202 };
202 203
203 } // namespace android_webview 204 } // namespace android_webview
204 205
205 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 206 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/renderer_host/aw_render_view_host_ext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698