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

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: 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..6968f5650442d191584ffadc268668bbcda27330 100644
--- a/ui/android/window_android.h
+++ b/ui/android/window_android.h
@@ -35,16 +35,6 @@ 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.
- 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();
@@ -85,7 +75,6 @@ class UI_ANDROID_EXPORT WindowAndroid : public ViewAndroid {
WindowAndroid* GetWindowAndroid() const override;
base::android::ScopedJavaGlobalRef<jobject> java_window_;
- gfx::Vector2dF content_offset_;
WindowAndroidCompositor* compositor_;
base::ObserverList<WindowAndroidObserver> observer_list_;

Powered by Google App Engine
This is Rietveld 408576698