mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 778468 - Part 6: Inject LayerView's InputConnectionHandler to remove GeckoInputConnection dependency. r=blassey
--HG-- extra : rebase_source : 7422a54c7c360ef8712c75d865e5e545d922aad1
This commit is contained in:
parent
469bd35e11
commit
058219de38
@ -541,7 +541,8 @@ public class GeckoAppShell
|
||||
private static void geckoLoaded() {
|
||||
final LayerController layerController = GeckoApp.mAppContext.getLayerController();
|
||||
LayerView v = layerController.getView();
|
||||
mInputConnection = v.setInputConnectionHandler();
|
||||
mInputConnection = GeckoInputConnection.create(v);
|
||||
v.setInputConnectionHandler(mInputConnection);
|
||||
layerController.notifyLayerClientOfGeometryChange();
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ import android.view.inputmethod.InputMethodManager;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
public class GeckoInputConnection
|
||||
class GeckoInputConnection
|
||||
extends BaseInputConnection
|
||||
implements TextWatcher, InputConnectionHandler {
|
||||
|
||||
|
@ -6,7 +6,6 @@
|
||||
package org.mozilla.gecko.gfx;
|
||||
|
||||
import org.mozilla.gecko.GeckoApp;
|
||||
import org.mozilla.gecko.GeckoInputConnection;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.PixelFormat;
|
||||
@ -131,10 +130,8 @@ public class LayerView extends FrameLayout {
|
||||
mController.setViewportSize(new FloatSize(size));
|
||||
}
|
||||
|
||||
public GeckoInputConnection setInputConnectionHandler() {
|
||||
GeckoInputConnection geckoInputConnection = GeckoInputConnection.create(this);
|
||||
mInputConnectionHandler = geckoInputConnection;
|
||||
return geckoInputConnection;
|
||||
public void setInputConnectionHandler(InputConnectionHandler inputConnectionHandler) {
|
||||
mInputConnectionHandler = inputConnectionHandler;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user