summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-02-20 16:58:39 +0900
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-02 08:50:50 +0100
commit541ec41f49afaf19ec5b64f534ff697da0a6bf5a (patch)
treeb6bc0b1cfe488e58da960cf26217d3acefc04246 /android
parent6c7291141c4d217e9d4748086fa37b1bb0c1e15f (diff)
android: LOEvents - remove unndeded, comments
Change-Id: I67976c2b72bf0f7ca044e479fa71b8adbaafdefc
Diffstat (limited to 'android')
-rw-r--r--android/experimental/LOAndroid3/src/java/org/libreoffice/LOEvent.java31
-rw-r--r--android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitShell.java10
-rw-r--r--android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java9
3 files changed, 21 insertions, 29 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOEvent.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOEvent.java
index 807d0d05788d..bce62848a3aa 100644
--- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOEvent.java
+++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOEvent.java
@@ -11,29 +11,26 @@ import org.mozilla.gecko.gfx.SubTile;
public class LOEvent implements Comparable<LOEvent> {
public static final int SIZE_CHANGED = 1;
- public static final int TILE_SIZE = 2;
- public static final int CHANGE_PART = 3;
- public static final int LOAD = 4;
- public static final int CLOSE = 5;
- public static final int REDRAW = 6;
- public static final int TILE_REEVALUATION_REQUEST = 7;
- public static final int THUMBNAIL = 8;
- public static final int TILE_INVALIDATION = 9;
- public static final int TOUCH = 10;
- public static final int KEY_EVENT = 11;
+ public static final int CHANGE_PART = 2;
+ public static final int LOAD = 3;
+ public static final int CLOSE = 4;
+ public static final int TILE_REEVALUATION_REQUEST = 5;
+ public static final int THUMBNAIL = 6;
+ public static final int TILE_INVALIDATION = 7;
+ public static final int TOUCH = 8;
+ public static final int KEY_EVENT = 9;
public final int mType;
public int mPriority = 0;
+ public String mTypeString;
public ThumbnailCreator.ThumbnailCreationTask mTask;
- public String mTypeString;
public int mPartIndex;
public String mFilename;
public ComposedTileLayer mComposedTileLayer;
public String mTouchType;
public MotionEvent mMotionEvent;
public PointF mDocumentTouchCoordinate;
- public String mKeyEventType;
public KeyEvent mKeyEvent;
public RectF mInvalidationRect;
@@ -41,11 +38,6 @@ public class LOEvent implements Comparable<LOEvent> {
mType = type;
}
- public LOEvent(int type, int widthPixels, int heightPixels) {
- mType = type;
- mTypeString = "Size Changed: " + widthPixels + " " + heightPixels;
- }
-
public LOEvent(int type, ComposedTileLayer composedTileLayer) {
mType = type;
mTypeString = "Tile Reevaluation";
@@ -58,11 +50,6 @@ public class LOEvent implements Comparable<LOEvent> {
mFilename = filename;
}
- public LOEvent(int type, IntSize tileSize) {
- mType = type;
- mTypeString = "Tile size";
- }
-
public LOEvent(int type, int partIndex) {
mType = type;
mPartIndex = partIndex;
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitShell.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitShell.java
index 2037e9dddcd4..94c47c0ee8c9 100644
--- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitShell.java
+++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitShell.java
@@ -113,14 +113,16 @@ public class LOKitShell {
LOKitShell.sendEvent(new LOEvent(LOEvent.CLOSE));
}
- public static void sendRedrawEvent() {
- LOKitShell.sendEvent(new LOEvent(LOEvent.REDRAW));
- }
-
+ /**
+ * Send tile reevaluation to LOKitThread.
+ */
public static void sendTileReevaluationRequest(ComposedTileLayer composedTileLayer) {
LOKitShell.sendEvent(new LOEvent(LOEvent.TILE_REEVALUATION_REQUEST, composedTileLayer));
}
+ /**
+ * Send tile invalidation to LOKitThread.
+ */
public static void sendTileInvalidationRequest(RectF rect) {
LOKitShell.sendEvent(new LOEvent(LOEvent.TILE_INVALIDATION, rect));
}
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
index 9ec76bee0392..eae8ba533424 100644
--- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
+++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
@@ -93,7 +93,9 @@ public class LOKitThread extends Thread {
mLayerClient.forceRender();
}
- /** Handle the geometry change + draw. */
+ /**
+ * Handle the geometry change + draw.
+ */
private void redraw() {
if (mLayerClient == null || mTileProvider == null) {
// called too early...
@@ -128,7 +130,9 @@ public class LOKitThread extends Thread {
}
}
- /** Invalidate everything + handle the geometry change */
+ /**
+ * Invalidate everything + handle the geometry change
+ */
private void refresh() {
mLayerClient.clearAndResetlayers();
redraw();
@@ -177,7 +181,6 @@ public class LOKitThread extends Thread {
closeDocument();
break;
case LOEvent.SIZE_CHANGED:
- Log.i(LOGTAG, "Size change event!");
redraw();
break;
case LOEvent.CHANGE_PART: