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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more vector use fixes Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index a4e90b651c7cd182ca33f059c6a787002f7a0297..58a90eace01f74bf1a0bca656ba6f7f81264d688 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -195,7 +195,7 @@ RenderWidgetHostViewAndroid::GetNativeViewAccessible() {
}
void RenderWidgetHostViewAndroid::MovePluginWindows(
- const gfx::Point& scroll_offset,
+ const gfx::Vector2d& scroll_offset,
const std::vector<webkit::npapi::WebPluginGeometry>& moves) {
// We don't have plugin windows on Android. Do nothing. Note: this is called
// from RenderWidgetHost::OnMsgUpdateRect which is itself invoked while
@@ -518,7 +518,7 @@ void RenderWidgetHostViewAndroid::SetCachedPageScaleFactorLimits(
}
void RenderWidgetHostViewAndroid::UpdateFrameInfo(
- const gfx::Point& scroll_offset,
+ const gfx::Vector2d& scroll_offset,
float page_scale_factor,
const gfx::Size& content_size) {
if (content_view_core_) {

Powered by Google App Engine
This is Rietveld 408576698