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

Unified Diff: ui/android/window_android.h

Issue 2219823002: Move content offset to ViewAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: offset in RWH Created 3 years, 12 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 54b57fc89fd32abfaa12a482e28615ab6e8635de..ec02245b09d132a737cec546f8115b46d3d686b1 100644
--- a/ui/android/window_android.h
+++ b/ui/android/window_android.h
@@ -44,16 +44,6 @@ class UI_ANDROID_EXPORT WindowAndroid : public ViewAndroid {
static bool RegisterWindowAndroid(JNIEnv* env);
- // 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;
- }
-
- gfx::Vector2dF content_offset() const {
- return content_offset_;
- }
-
// Compositor callback relay.
void OnCompositingDidCommit();
@@ -108,7 +98,6 @@ class UI_ANDROID_EXPORT WindowAndroid : public ViewAndroid {
base::android::ScopedJavaGlobalRef<jobject> java_window_;
const int display_id_;
- gfx::Vector2dF content_offset_;
WindowAndroidCompositor* compositor_;
base::ObserverList<WindowAndroidObserver> observer_list_;

Powered by Google App Engine
This is Rietveld 408576698