Bug 746142 - Part 2 - Use inputmode attribute to vary the virtual keyboard on Android. f=mounir r=cpeterson

This commit is contained in:
Zoe Bellot
2012-08-26 23:16:22 -03:00
parent 935b02aef0
commit 1de92dd943
13 changed files with 62 additions and 15 deletions

View File

@@ -585,12 +585,12 @@ public class GeckoAppShell
mInputConnection.notifyIME(type, state);
}
public static void notifyIMEEnabled(int state, String typeHint,
public static void notifyIMEEnabled(int state, String typeHint, String modeHint,
String actionHint, boolean landscapeFS) {
// notifyIMEEnabled() still needs the landscapeFS parameter because it is called from JNI
// code that assumes it has the same signature as XUL Fennec's (which does use landscapeFS).
if (mInputConnection != null)
mInputConnection.notifyIMEEnabled(state, typeHint, actionHint);
mInputConnection.notifyIMEEnabled(state, typeHint, modeHint, actionHint);
}
public static void notifyIMEChange(String text, int start, int end, int newEnd) {