Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(801)

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/input/ChromiumBaseInputConnection.java

Issue 2546613002: Revert of Fix leaks in InputConnectionHandlerThread (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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();
35 } 34 }
36 35
37 /** 36 /**
38 * Updates the internal representation of the text being edited and its sele ction and 37 * Updates the internal representation of the text being edited and its sele ction and
39 * composition properties. 38 * composition properties.
40 * 39 *
41 * @param text The String contents of the field being edited. 40 * @param text The String contents of the field being edited.
42 * @param selectionStart The character offset of the selection start, or the caret position if 41 * @param selectionStart The character offset of the selection start, or the caret position if
43 * there is no selection. 42 * there is no selection.
44 * @param selectionEnd The character offset of the selection end, or the car et position if there 43 * @param selectionEnd The character offset of the selection end, or the car et position if there
(...skipping 28 matching lines...) Expand all
73 * Move cursor to the end of the current selection. 72 * Move cursor to the end of the current selection.
74 */ 73 */
75 void moveCursorToSelectionEndOnUiThread(); 74 void moveCursorToSelectionEndOnUiThread();
76 75
77 /** 76 /**
78 * Unblock thread function if needed, e.g. we found that we will 77 * Unblock thread function if needed, e.g. we found that we will
79 * never get state update. 78 * never get state update.
80 */ 79 */
81 void unblockOnUiThread(); 80 void unblockOnUiThread();
82 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698