diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-01-12 19:48:33 +0900 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-16 13:18:26 +0100 |
commit | 08d711171b5c5a8bbc80c3ebb9470bcf4058f113 (patch) | |
tree | d713bccb0d97ce1b9d40114f61366572653ed51b | |
parent | 2d92cfd38eb89fdf527a00754eb97d7b49f08ada (diff) |
android: comments for new interfaces and methods
Change-Id: I742e232b3a9994f82423bc4bdfa1a5b656f8af87
3 files changed, 25 insertions, 0 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/kit/Document.java b/android/Bootstrap/src/org/libreoffice/kit/Document.java index 10d0a0c94982..4c791cb2f2fc 100644 --- a/android/Bootstrap/src/org/libreoffice/kit/Document.java +++ b/android/Bootstrap/src/org/libreoffice/kit/Document.java @@ -85,7 +85,15 @@ public class Document { public native void initializeForRendering(); + /** + * Callback to retrieve messages from LOK + */ public interface MessageCallback { + /** + * Invoked when a message is retrieved from LOK + * @param signalNumber - signal type / number + * @param payload - retrieved for the signal + */ void messageRetrieved(int signalNumber, String payload); } diff --git a/android/Bootstrap/src/org/libreoffice/kit/Office.java b/android/Bootstrap/src/org/libreoffice/kit/Office.java index 8759e85fe990..25861c92abfc 100644 --- a/android/Bootstrap/src/org/libreoffice/kit/Office.java +++ b/android/Bootstrap/src/org/libreoffice/kit/Office.java @@ -12,6 +12,8 @@ package org.libreoffice.kit; import java.nio.ByteBuffer; public class Office { + public static final int KEY_PRESS = 0; + public static final int KEY_RELEASE = 1; private ByteBuffer handle; @@ -32,6 +34,11 @@ public class Office { return document; } + /** + * Post a key event to LibreOffice. + * @param type - type of key event + * @param code - key event code + */ public native void postKeyEvent(int type, int code); public native void destroy(); diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/TileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/TileProvider.java index c705a9448005..faa55a80c940 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/TileProvider.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/TileProvider.java @@ -16,6 +16,9 @@ public interface TileProvider { CairoImage createTile(float x, float y, IntSize tileSize, float zoom); + /** + * Rerender and overwrite tile's image buffer directly + */ void rerenderTile(CairoImage image, float x, float y, IntSize tileSize, float zoom); void changePart(int partIndex); @@ -30,7 +33,14 @@ public interface TileProvider { void registerInvalidationCallback(TileProvider.TileInvalidationCallback tileInvalidationCallback); + /** + * Callback to retrieve invalidation calls + */ public interface TileInvalidationCallback { + /** + * Invoked when a region is invalidated. + * @param rect area in pixels which was invalidated and needs to be redrawn + */ void invalidate(RectF rect); } } |