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 |
701 void detach() { | 706 void detach() { |
702 if (mDismissInput != null) { | 707 if (mDismissInput != null) { |
703 mHandler.removeCallbacks(mDismissInput); | 708 mHandler.removeCallbacks(mDismissInput); |
704 mDismissInput.detach(); | 709 mDismissInput.detach(); |
705 } | 710 } |
706 mNativeImeAdapterAndroid = 0; | 711 mNativeImeAdapterAndroid = 0; |
707 mTextInputType = 0; | 712 mTextInputType = 0; |
708 } | 713 } |
709 | 714 |
710 private native boolean nativeSendSyntheticKeyEvent(long nativeImeAdapterAndr
oid, | 715 private native boolean nativeSendSyntheticKeyEvent(long nativeImeAdapterAndr
oid, |
(...skipping 25 matching lines...) Expand all Loading... |
736 private native void nativeDeleteSurroundingText(long nativeImeAdapterAndroid
, | 741 private native void nativeDeleteSurroundingText(long nativeImeAdapterAndroid
, |
737 int before, int after); | 742 int before, int after); |
738 | 743 |
739 private native void nativeUnselect(long nativeImeAdapterAndroid); | 744 private native void nativeUnselect(long nativeImeAdapterAndroid); |
740 private native void nativeSelectAll(long nativeImeAdapterAndroid); | 745 private native void nativeSelectAll(long nativeImeAdapterAndroid); |
741 private native void nativeCut(long nativeImeAdapterAndroid); | 746 private native void nativeCut(long nativeImeAdapterAndroid); |
742 private native void nativeCopy(long nativeImeAdapterAndroid); | 747 private native void nativeCopy(long nativeImeAdapterAndroid); |
743 private native void nativePaste(long nativeImeAdapterAndroid); | 748 private native void nativePaste(long nativeImeAdapterAndroid); |
744 private native void nativeResetImeAdapter(long nativeImeAdapterAndroid); | 749 private native void nativeResetImeAdapter(long nativeImeAdapterAndroid); |
745 } | 750 } |
OLD | NEW |