OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.content.browser.input; | 5 package org.chromium.content.browser.input; |
6 | 6 |
7 import android.os.Handler; | 7 import android.os.Handler; |
8 import android.view.KeyEvent; | 8 import android.view.KeyEvent; |
9 import android.view.View; | 9 import android.view.View; |
10 import android.view.inputmethod.EditorInfo; | 10 import android.view.inputmethod.EditorInfo; |
(...skipping 13 matching lines...) Expand all Loading... |
24 int inputType, int inputFlags, int inputMode, int selectionStart
, int selectionEnd, | 24 int inputType, int inputFlags, int inputMode, int selectionStart
, int selectionEnd, |
25 EditorInfo outAttrs); | 25 EditorInfo outAttrs); |
26 | 26 |
27 @VisibleForTesting | 27 @VisibleForTesting |
28 Handler getHandler(); | 28 Handler getHandler(); |
29 | 29 |
30 void onWindowFocusChanged(boolean gainFocus); | 30 void onWindowFocusChanged(boolean gainFocus); |
31 void onViewFocusChanged(boolean gainFocus); | 31 void onViewFocusChanged(boolean gainFocus); |
32 void onViewAttachedToWindow(); | 32 void onViewAttachedToWindow(); |
33 void onViewDetachedFromWindow(); | 33 void onViewDetachedFromWindow(); |
| 34 void destroy(); |
34 } | 35 } |
35 | 36 |
36 /** | 37 /** |
37 * Updates the internal representation of the text being edited and its sele
ction and | 38 * Updates the internal representation of the text being edited and its sele
ction and |
38 * composition properties. | 39 * composition properties. |
39 * | 40 * |
40 * @param text The String contents of the field being edited. | 41 * @param text The String contents of the field being edited. |
41 * @param selectionStart The character offset of the selection start, or the
caret position if | 42 * @param selectionStart The character offset of the selection start, or the
caret position if |
42 * there is no selection. | 43 * there is no selection. |
43 * @param selectionEnd The character offset of the selection end, or the car
et position if there | 44 * @param selectionEnd The character offset of the selection end, or the car
et position if there |
(...skipping 28 matching lines...) Expand all Loading... |
72 * Move cursor to the end of the current selection. | 73 * Move cursor to the end of the current selection. |
73 */ | 74 */ |
74 void moveCursorToSelectionEndOnUiThread(); | 75 void moveCursorToSelectionEndOnUiThread(); |
75 | 76 |
76 /** | 77 /** |
77 * Unblock thread function if needed, e.g. we found that we will | 78 * Unblock thread function if needed, e.g. we found that we will |
78 * never get state update. | 79 * never get state update. |
79 */ | 80 */ |
80 void unblockOnUiThread(); | 81 void unblockOnUiThread(); |
81 } | 82 } |
OLD | NEW |