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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java

Issue 2323983003: DO NOT SUBMIT: Bundle IME-related messages into one for batch edit (Closed)
Patch Set: rebased Created 4 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
index e40bdd0b50bf6cf74f35ba0c33804d178a619683..cb16c3df5bb4f3d96575ce35307765312c4203ce 100644
--- a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
+++ b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
@@ -532,6 +532,16 @@ public class ImeAdapter {
return true;
}
+ void beginBatchEdit() {
+ if (mNativeImeAdapterAndroid == 0) return;
+ nativeBeginBatchEdit(mNativeImeAdapterAndroid);
+ }
+
+ void endBatchEdit() {
+ if (mNativeImeAdapterAndroid == 0) return;
+ nativeEndBatchEdit(mNativeImeAdapterAndroid);
+ }
+
void notifyUserAction() {
mInputMethodManagerWrapper.notifyUserAction();
}
@@ -760,6 +770,8 @@ public class ImeAdapter {
}
}
+ private native void nativeBeginBatchEdit(long nativeImeAdapterAndroid);
+ private native void nativeEndBatchEdit(long nativeImeAdapterAndroid);
private native boolean nativeSendKeyEvent(long nativeImeAdapterAndroid, KeyEvent event,
int type, int modifiers, long timestampMs, int keyCode, int scanCode,
boolean isSystemKey, int unicodeChar);

Powered by Google App Engine
This is Rietveld 408576698