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

Unified Diff: ui/android/window_android.h

Issue 2249243002: Remove dip scale dependency from ui::WindowAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 4 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: ui/android/window_android.h
diff --git a/ui/android/window_android.h b/ui/android/window_android.h
index 6a8fd155c764a2ffc39fac31bdb1bfbf83bdc8a6..d65235ccd5e99c85eb9a520f73a215720fc7fa2c 100644
--- a/ui/android/window_android.h
+++ b/ui/android/window_android.h
@@ -35,8 +35,8 @@ class UI_ANDROID_EXPORT WindowAndroid : public ViewAndroid {
static bool RegisterWindowAndroid(JNIEnv* env);
- // The content offset is used to translate snapshots to the correct part of
- // the window.
+ // The content offset in CSS pixels. It is used together with device scale
+ // factor to translate snapshots to the correct part of the window.
void set_content_offset(const gfx::Vector2dF& content_offset) {
content_offset_ = content_offset;
}

Powered by Google App Engine
This is Rietveld 408576698