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

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: updated comments Created 3 years, 11 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 | « ui/android/view_android.cc ('k') | ui/snapshot/snapshot_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/window_android.h
diff --git a/ui/android/window_android.h b/ui/android/window_android.h
index 9323ad8b08a6fd9ee959756f4185f9325de028b1..61c83c14ac497c8f89c3df218441e5e35e332a1a 100644
--- a/ui/android/window_android.h
+++ b/ui/android/window_android.h
@@ -46,16 +46,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();
@@ -113,7 +103,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_;
« no previous file with comments | « ui/android/view_android.cc ('k') | ui/snapshot/snapshot_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698