aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2010-10-01 19:40:44 +0900
committersatok <satok@google.com>2010-10-02 00:02:00 +0900
commit4fc510a7890976d9968d73ceacf3983e77f489d2 (patch)
treed8ffd8fed770cf0fe13cd1dbf1b7ffdc6924223b /java/src/com/android/inputmethod/latin/LatinKeyboardView.java
parent932a1b756d5e7e350dfb3c937a43632426f834c2 (diff)
downloadlatinime-4fc510a7890976d9968d73ceacf3983e77f489d2.tar.gz
latinime-4fc510a7890976d9968d73ceacf3983e77f489d2.tar.xz
latinime-4fc510a7890976d9968d73ceacf3983e77f489d2.zip
Unbundle Keyboard.java to BaseKeyboard.java
Change-Id: I8b310c2c0cae1a151e53c22001c586697346982c
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinKeyboardView.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
index 22d39f7aa..912af7e2a 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
@@ -16,11 +16,11 @@
package com.android.inputmethod.latin;
+import com.android.inputmethod.latin.BaseKeyboard.Key;
+
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
-import android.inputmethodservice.Keyboard;
-import android.inputmethodservice.Keyboard.Key;
import android.os.Handler;
import android.os.Message;
import android.os.SystemClock;
@@ -39,7 +39,7 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
static final int KEYCODE_NEXT_LANGUAGE = -104;
static final int KEYCODE_PREV_LANGUAGE = -105;
- private Keyboard mPhoneKeyboard;
+ private BaseKeyboard mPhoneKeyboard;
/** Whether we've started dropping move events because we found a big jump */
private boolean mDroppingEvents;
@@ -61,7 +61,7 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
super(context, attrs, defStyle);
}
- public void setPhoneKeyboard(Keyboard phoneKeyboard) {
+ public void setPhoneKeyboard(BaseKeyboard phoneKeyboard) {
mPhoneKeyboard = phoneKeyboard;
}
@@ -76,7 +76,7 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
}
@Override
- public void setKeyboard(Keyboard k) {
+ public void setKeyboard(BaseKeyboard k) {
super.setKeyboard(k);
// One-seventh of the keyboard width seems like a reasonable threshold
mJumpThresholdSquare = k.getMinWidth() / 7;
@@ -108,7 +108,7 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
@Override
protected CharSequence adjustCase(CharSequence label) {
- Keyboard keyboard = getKeyboard();
+ BaseKeyboard keyboard = getKeyboard();
if (keyboard.isShifted()
&& keyboard instanceof LatinKeyboard
&& ((LatinKeyboard) keyboard).isAlphaKeyboard()
@@ -120,7 +120,7 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
}
public boolean setShiftLocked(boolean shiftLocked) {
- Keyboard keyboard = getKeyboard();
+ BaseKeyboard keyboard = getKeyboard();
if (keyboard instanceof LatinKeyboard) {
((LatinKeyboard)keyboard).setShiftLocked(shiftLocked);
invalidateAllKeys();
@@ -257,7 +257,7 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
private int mLastY;
private Paint mPaint;
- private void setKeyboardLocal(Keyboard k) {
+ private void setKeyboardLocal(BaseKeyboard k) {
if (DEBUG_AUTO_PLAY) {
findKeys();
if (mHandler2 == null) {