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

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

Issue 14100003: [Android] Moving input related files to a separate input/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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/InputMethodManagerWrapper.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/InputMethodManagerWrapper.java b/content/public/android/java/src/org/chromium/content/browser/InputMethodManagerWrapper.java
deleted file mode 100644
index 572582e8035c5d1cd137ce15c3778ac32b9bea21..0000000000000000000000000000000000000000
--- a/content/public/android/java/src/org/chromium/content/browser/InputMethodManagerWrapper.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.content.browser;
-
-import android.content.Context;
-import android.os.IBinder;
-import android.os.ResultReceiver;
-import android.view.View;
-import android.view.inputmethod.InputMethodManager;
-
-/**
- * Wrapper around Android's InputMethodManager
- */
-public class InputMethodManagerWrapper {
- private final Context mContext;
-
- public InputMethodManagerWrapper(Context context) {
- mContext = context;
- }
-
- private InputMethodManager getInputMethodManager() {
- return (InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
- }
-
- /**
- * @see android.view.inputmethod.InputMethodManager#restartInput(View)
- */
- public void restartInput(View view) {
- getInputMethodManager().restartInput(view);
- }
-
- /**
- * @see android.view.inputmethod.InputMethodManager#showSoftInput(View, int, ResultReceiver)
- */
- public void showSoftInput(View view, int flags, ResultReceiver resultReceiver) {
- getInputMethodManager().showSoftInput(view, flags, resultReceiver);
- }
-
- /**
- * @see android.view.inputmethod.InputMethodManager#isActive(View)
- */
- public boolean isActive(View view) {
- return getInputMethodManager().isActive(view);
- }
-
- /**
- * @see InputMethodManager#hideSoftInputFromWindow(IBinder, int, ResultReceiver)
- */
- public boolean hideSoftInputFromWindow(IBinder windowToken, int flags,
- ResultReceiver resultReceiver) {
- return getInputMethodManager().hideSoftInputFromWindow(windowToken, flags, resultReceiver);
- }
-
- /**
- * @see android.view.inputmethod.InputMethodManager#updateSelection(View, int, int, int, int)
- */
- public void updateSelection(View view, int selStart, int selEnd,
- int candidatesStart, int candidatesEnd) {
- getInputMethodManager().updateSelection(view, selStart, selEnd, candidatesStart,
- candidatesEnd);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698