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

Side by Side Diff: android_webview/renderer/aw_render_view_ext.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 | « android_webview/native/aw_contents.cc ('k') | android_webview/renderer/aw_render_view_ext.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_AW_RENDER_VIEW_EXT_H_ 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_
6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ 6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const gfx::SizeF& touch_area); 47 const gfx::SizeF& touch_area);
48 48
49 void OnSetTextZoomFactor(float zoom_factor); 49 void OnSetTextZoomFactor(float zoom_factor);
50 50
51 void OnResetScrollAndScaleState(); 51 void OnResetScrollAndScaleState();
52 52
53 void OnSetInitialPageScale(double page_scale_factor); 53 void OnSetInitialPageScale(double page_scale_factor);
54 54
55 void OnSetBackgroundColor(SkColor c); 55 void OnSetBackgroundColor(SkColor c);
56 56
57 void OnSmoothScroll(int target_x, int target_y, long duration_ms);
58
57 void UpdatePageScaleFactor(); 59 void UpdatePageScaleFactor();
58 60
59 void CheckContentsSize(); 61 void CheckContentsSize();
60 62
61 bool capture_picture_enabled_; 63 bool capture_picture_enabled_;
62 64
63 float page_scale_factor_; 65 float page_scale_factor_;
64 66
65 gfx::Size last_sent_contents_size_; 67 gfx::Size last_sent_contents_size_;
66 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; 68 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_;
67 69
68 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); 70 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt);
69 }; 71 };
70 72
71 } // namespace android_webview 73 } // namespace android_webview
72 74
73 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ 75 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/renderer/aw_render_view_ext.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698