summaryrefslogtreecommitdiff
path: root/vcl/android
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-01 15:19:16 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-02 21:00:01 +0200
commita8ee2fd020477ceee9ca91976e2ea90de45141af (patch)
treeeedfd72ecc408dcc1ac72b6f30715ffd81a16821 /vcl/android
parent5b1d2fd1e6c39d44ad65c3aec1b496c7a446b1ea (diff)
Start hacking on zooming
Change-Id: Ibc9aad490c4616d339e95352a0b8a7f7bed93070
Diffstat (limited to 'vcl/android')
-rw-r--r--vcl/android/androidinst.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/vcl/android/androidinst.cxx b/vcl/android/androidinst.cxx
index 2c54a0eeeff3..46e6588b2482 100644
--- a/vcl/android/androidinst.cxx
+++ b/vcl/android/androidinst.cxx
@@ -971,4 +971,20 @@ Java_org_libreoffice_experimental_desktop_Desktop_touch(JNIEnv * /* env */,
LOGW("No focused frame to emit event on");
}
+// public static native void zoom(float scale, int x, int y);
+extern "C" SAL_JNI_EXPORT void JNICALL
+Java_org_libreoffice_experimental_desktop_Desktop_zoom(JNIEnv * /* env */,
+ jobject /* clazz */,
+ jfloat scale,
+ jint x,
+ jint y)
+{
+ (void) x;
+ (void) y;
+
+ if (scale > 1.05) {
+ } else if (scale < 0.95) {
+ }
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */