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

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: pass right bounds to snapshot api Created 4 years 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 b7763acf5824dc495afbf9cc68183f45b11feaa0..0c8b1f4ea1401e8e068b04e3d0b64abe5e04041c 100644
--- a/ui/android/window_android.h
+++ b/ui/android/window_android.h
@@ -39,16 +39,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();
@@ -98,7 +88,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