Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 package org.chromium.content.browser.input; | |
| 6 | |
| 7 import android.view.KeyEvent; | |
| 8 import android.view.View; | |
| 9 import android.view.inputmethod.InputConnection; | |
| 10 | |
| 11 /** | |
| 12 * TODO: Insert description here. (generated by changwan) | |
| 13 */ | |
| 14 public interface ChromiumBaseInputConnection extends InputConnection { | |
| 15 /** | |
| 16 * Updates the internal representation of the text being edited and its sele ction and | |
| 17 * composition properties. | |
| 18 * | |
| 19 * @param text The String contents of the field being edited. | |
| 20 * @param selectionStart The character offset of the selection start, or the caret position if | |
| 21 * there is no selection. | |
| 22 * @param selectionEnd The character offset of the selection end, or the car et position if there | |
| 23 * is no selection. | |
| 24 * @param compositionStart The character offset of the composition start, or -1 if there is no | |
| 25 * composition. | |
| 26 * @param compositionEnd The character offset of the composition end, or -1 if there is no | |
| 27 * selection. | |
| 28 * @param isNonImeChange True when the update was caused by non-IME (e.g. Ja vascript). | |
| 29 */ | |
| 30 void updateState(String text, int selectionStart, int selectionEnd, int comp ositionStart, | |
|
aelias_OOO_until_Jul13
2015/09/30 00:10:03
Please rename this updateStateOnUiThread.
Changwan Ryu
2016/01/19 07:31:52
Done.
| |
| 31 int compositionEnd, boolean isNonImeChange); | |
| 32 | |
| 33 /** | |
| 34 * Handle key event dispatched from View. | |
| 35 * @see View#dispatchKeyEvent(android.view.KeyEvent) | |
| 36 */ | |
| 37 boolean dispatchKeyEvent(KeyEvent event); | |
|
aelias_OOO_until_Jul13
2015/09/30 00:10:03
Please rename this sendKeyEventOnUiThread.
Changwan Ryu
2016/01/19 07:31:52
Changed to dispatchKeyEventOnUiThread as this is c
| |
| 38 | |
| 39 /** | |
| 40 * Restart input. | |
| 41 */ | |
| 42 void restartInput(); | |
|
aelias_OOO_until_Jul13
2015/09/30 00:10:03
Please rename this restartInputOnUiThread.
Changwan Ryu
2016/01/19 07:31:52
Done.
| |
| 43 } | |
| OLD | NEW |