michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.gfx; michael@0: michael@0: import android.os.Handler; michael@0: import android.view.KeyEvent; michael@0: import android.view.inputmethod.EditorInfo; michael@0: import android.view.inputmethod.InputConnection; michael@0: michael@0: public interface InputConnectionHandler michael@0: { michael@0: Handler getHandler(Handler defHandler); michael@0: InputConnection onCreateInputConnection(EditorInfo outAttrs); michael@0: boolean onKeyPreIme(int keyCode, KeyEvent event); michael@0: boolean onKeyDown(int keyCode, KeyEvent event); michael@0: boolean onKeyLongPress(int keyCode, KeyEvent event); michael@0: boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event); michael@0: boolean onKeyUp(int keyCode, KeyEvent event); michael@0: boolean isIMEEnabled(); michael@0: }