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

Unified Diff: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestInputMethodManagerWrapper.java

Issue 1377103004: Revert of Fix OSK to show when physical keyboard is detached on KK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestInputMethodManagerWrapper.java
diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestInputMethodManagerWrapper.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestInputMethodManagerWrapper.java
index 48f84f9f7c67a52ebbfa91974be450c92544242e..674bf5850754dc08056dec03c32c9915f9457b31 100644
--- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestInputMethodManagerWrapper.java
+++ b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestInputMethodManagerWrapper.java
@@ -64,9 +64,8 @@
private final ContentViewCore mContentViewCore;
private InputConnection mInputConnection;
- private int mShowSoftInputCounter;
- private int mHideSoftInputCounter;
- private int mUpdateSelectionCounter;
+ private int mShowSoftInputCounter = 0;
+ private int mUpdateSelectionCounter = 0;
private EditorInfo mEditorInfo;
private final Range mSelection = new Range(0, 0);
private final Range mComposition = new Range(-1, -1);
@@ -99,7 +98,6 @@
@Override
public boolean hideSoftInputFromWindow(IBinder windowToken, int flags,
ResultReceiver resultReceiver) {
- mHideSoftInputCounter++;
boolean retVal = mInputConnection == null;
mInputConnection = null;
return retVal;
@@ -113,23 +111,10 @@
mComposition.set(candidatesStart, candidatesEnd);
}
- /**
- * @return The number of showSoftInput() function calls.
- */
public int getShowSoftInputCounter() {
return mShowSoftInputCounter;
}
- /**
- * @return The number of hideSoftInputFromWindow() function calls.
- */
- public int getHideSoftInputCounter() {
- return mHideSoftInputCounter;
- }
-
- /**
- * @return The number of updateSelection() function calls.
- */
public int getUpdateSelectionCounter() {
return mUpdateSelectionCounter;
}
« no previous file with comments | « content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698