summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/PopupPanel.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-08-29 17:02:52 +0900
committerTadashi G. Takaoka <takaoka@google.com>2011-08-29 17:07:48 +0900
commitf44a01b40852dde2363a061cdc7df2ef4cb59aad (patch)
tree5655e6205e83e436cbc5189d7285ac8425a16a1f /java/src/com/android/inputmethod/keyboard/PopupPanel.java
parent1f891474931c89bd575df70cbc06df45f8e5cfb8 (diff)
Make PopupPanel decoupled with LatinKeyboardView and Keyboard
Bug: 5023981 Change-Id: Ib4fd55d52718aa244178ca2313f5e8487378324f
Diffstat (limited to 'java/src/com/android/inputmethod/keyboard/PopupPanel.java')
-rw-r--r--java/src/com/android/inputmethod/keyboard/PopupPanel.java19
1 files changed, 14 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/PopupPanel.java b/java/src/com/android/inputmethod/keyboard/PopupPanel.java
index db637c50b..5e51fd54a 100644
--- a/java/src/com/android/inputmethod/keyboard/PopupPanel.java
+++ b/java/src/com/android/inputmethod/keyboard/PopupPanel.java
@@ -16,18 +16,27 @@
package com.android.inputmethod.keyboard;
+import android.view.View;
import android.widget.PopupWindow;
public interface PopupPanel extends PointerTracker.KeyEventHandler {
+ public interface Controller {
+ public boolean dismissPopupPanel();
+ }
+
+ public void setShifted(boolean shifted);
+
/**
* Show popup panel.
- * @param parentKeyboardView the parent KeyboardView that has the parent key.
- * @param parentKey the parent key that is the source of this popup panel
- * @param tracker the pointer tracker that pressesd the parent key
+ * @param parentView the parent view of this popup panel
+ * @param controller the controller that can dismiss this popup panel
+ * @param pointX x coordinate of this popup panel
+ * @param pointY y coordinate of this popup panel
* @param window PopupWindow to be used to show this popup panel
+ * @param listener the listener that will receive keyboard action from this popup panel.
*/
- public void showPopupPanel(LatinKeyboardView parentKeyboardView, Key parentKey,
- PointerTracker tracker, PopupWindow window);
+ public void showPopupPanel(View parentView, Controller controller, int pointX, int pointY,
+ PopupWindow window, KeyboardActionListener listener);
/**
* Translate X-coordinate of touch event to the local X-coordinate of this PopupPanel.