diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2014-12-15 21:39:47 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2014-12-15 22:02:00 +0900 |
commit | a9c45c5e4ddd663ea92a8163188b1603cd1f5c6c (patch) | |
tree | e3007d582264f11bac197dc0ea02eadd39a047fb /android | |
parent | 2174ad93b654960840117e5d07a0a766b5bff9bd (diff) |
android: add to DisplayPortMetrics position and zoom getter
Change-Id: I90674f51113c082d3bd88a72f8b9883b44569f87
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/DisplayPortMetrics.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/DisplayPortMetrics.java b/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/DisplayPortMetrics.java index 3c9c39b8d60e..ab9a63766113 100644 --- a/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/DisplayPortMetrics.java +++ b/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/DisplayPortMetrics.java @@ -20,6 +20,14 @@ public final class DisplayPortMetrics { private final RectF mPosition; private final float mResolution; + public RectF getPosition() { + return mPosition; + } + + public float getResolution() { + return mResolution; + } + public DisplayPortMetrics() { this(0, 0, 0, 0, 1); } |