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

Unified Diff: content/browser/web_contents/web_contents_android.cc

Issue 1882283002: Fix the scroll and zoom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_android.cc
diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc
index dcb17304fee60037dd14087b94672af79efb2911..5203474c1d39ef47f7a4b27d9131292bfd768cd3 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -70,17 +70,17 @@ void JavaScriptResultCallback(const ScopedJavaGlobalRef<jobject>& callback,
struct AccessibilitySnapshotParams {
AccessibilitySnapshotParams(float scale,
- float horizontal_scroll,
- float vertical_offset)
+ float vertical_offset,
+ float horizontal_scroll)
: scale_factor(scale),
- x_scroll(horizontal_scroll),
y_offset(vertical_offset),
+ x_scroll(horizontal_scroll),
has_tree_data(false),
should_select_leaf_nodes(false) {}
float scale_factor;
- float x_scroll;
float y_offset;
+ float x_scroll;
bool has_tree_data;
// The current text selection within this tree, if any, expressed as the
// node ID and character offset of the anchor (selection start) and focus
« no previous file with comments | « no previous file | content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698