| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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.os.ResultReceiver; | 8 import android.os.ResultReceiver; |
| 9 import android.os.SystemClock; | 9 import android.os.SystemClock; |
| 10 import android.text.Editable; | 10 import android.text.Editable; |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 } | 691 } |
| 692 } | 692 } |
| 693 | 693 |
| 694 @CalledByNative | 694 @CalledByNative |
| 695 private void cancelComposition() { | 695 private void cancelComposition() { |
| 696 if (mInputConnection != null) mInputConnection.restartInput(); | 696 if (mInputConnection != null) mInputConnection.restartInput(); |
| 697 mLastComposeText = null; | 697 mLastComposeText = null; |
| 698 } | 698 } |
| 699 | 699 |
| 700 @CalledByNative | 700 @CalledByNative |
| 701 private void setCharacterBounds(float[] characterBounds) { | |
| 702 // TODO(yukawa): Implement this. | |
| 703 } | |
| 704 | |
| 705 @CalledByNative | |
| 706 void detach() { | 701 void detach() { |
| 707 if (mDismissInput != null) { | 702 if (mDismissInput != null) { |
| 708 mHandler.removeCallbacks(mDismissInput); | 703 mHandler.removeCallbacks(mDismissInput); |
| 709 mDismissInput.detach(); | 704 mDismissInput.detach(); |
| 710 } | 705 } |
| 711 mNativeImeAdapterAndroid = 0; | 706 mNativeImeAdapterAndroid = 0; |
| 712 mTextInputType = 0; | 707 mTextInputType = 0; |
| 713 } | 708 } |
| 714 | 709 |
| 715 private native boolean nativeSendSyntheticKeyEvent(long nativeImeAdapterAndr
oid, | 710 private native boolean nativeSendSyntheticKeyEvent(long nativeImeAdapterAndr
oid, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 741 private native void nativeDeleteSurroundingText(long nativeImeAdapterAndroid
, | 736 private native void nativeDeleteSurroundingText(long nativeImeAdapterAndroid
, |
| 742 int before, int after); | 737 int before, int after); |
| 743 | 738 |
| 744 private native void nativeUnselect(long nativeImeAdapterAndroid); | 739 private native void nativeUnselect(long nativeImeAdapterAndroid); |
| 745 private native void nativeSelectAll(long nativeImeAdapterAndroid); | 740 private native void nativeSelectAll(long nativeImeAdapterAndroid); |
| 746 private native void nativeCut(long nativeImeAdapterAndroid); | 741 private native void nativeCut(long nativeImeAdapterAndroid); |
| 747 private native void nativeCopy(long nativeImeAdapterAndroid); | 742 private native void nativeCopy(long nativeImeAdapterAndroid); |
| 748 private native void nativePaste(long nativeImeAdapterAndroid); | 743 private native void nativePaste(long nativeImeAdapterAndroid); |
| 749 private native void nativeResetImeAdapter(long nativeImeAdapterAndroid); | 744 private native void nativeResetImeAdapter(long nativeImeAdapterAndroid); |
| 750 } | 745 } |
| OLD | NEW |