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

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

Issue 1846653003: android webview: Keep zoom methods synchronous (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ipc comments Created 4 years, 8 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/browser_view_renderer.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) 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 void SetOffscreenPreRaster(bool enabled); 76 void SetOffscreenPreRaster(bool enabled);
77 77
78 // View update notifications. 78 // View update notifications.
79 void SetIsPaused(bool paused); 79 void SetIsPaused(bool paused);
80 void SetViewVisibility(bool visible); 80 void SetViewVisibility(bool visible);
81 void SetWindowVisibility(bool visible); 81 void SetWindowVisibility(bool visible);
82 void OnSizeChanged(int width, int height); 82 void OnSizeChanged(int width, int height);
83 void OnAttachedToWindow(int width, int height); 83 void OnAttachedToWindow(int width, int height);
84 void OnDetachedFromWindow(); 84 void OnDetachedFromWindow();
85 void SynchronizeRendererScroll();
85 void OnComputeScroll(base::TimeTicks animation_time); 86 void OnComputeScroll(base::TimeTicks animation_time);
86 87
87 // Sets the scale for logical<->physical pixel conversions. 88 // Sets the scale for logical<->physical pixel conversions.
88 void SetDipScale(float dip_scale); 89 void SetDipScale(float dip_scale);
89 float dip_scale() const { return dip_scale_; } 90 float dip_scale() const { return dip_scale_; }
90 float page_scale_factor() const { return page_scale_factor_; } 91 float page_scale_factor() const { return page_scale_factor_; }
91 92
92 // Set the root layer scroll offset to |new_value|. 93 // Set the root layer scroll offset to |new_value|.
93 void ScrollTo(const gfx::Vector2d& new_value); 94 void ScrollTo(const gfx::Vector2d& new_value);
94 95
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 uint32_t next_compositor_id_; 195 uint32_t next_compositor_id_;
195 196
196 ParentCompositorDrawConstraints external_draw_constraints_; 197 ParentCompositorDrawConstraints external_draw_constraints_;
197 198
198 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 199 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
199 }; 200 };
200 201
201 } // namespace android_webview 202 } // namespace android_webview
202 203
203 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 204 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698