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

Unified Diff: services/keyboard/src/org/chromium/mojo/keyboard/KeyboardServiceImpl.java

Issue 1098243003: java libraries: Fix warnings in eclipse. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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: services/keyboard/src/org/chromium/mojo/keyboard/KeyboardServiceImpl.java
diff --git a/services/keyboard/org/chromium/mojo/keyboard/KeyboardServiceImpl.java b/services/keyboard/src/org/chromium/mojo/keyboard/KeyboardServiceImpl.java
similarity index 85%
rename from services/keyboard/org/chromium/mojo/keyboard/KeyboardServiceImpl.java
rename to services/keyboard/src/org/chromium/mojo/keyboard/KeyboardServiceImpl.java
index 461fca3af2d19198624d9d9ab079bdf20463bcc3..76891971ddd21e3a34f6fa723eefa2269c0dc1f0 100644
--- a/services/keyboard/org/chromium/mojo/keyboard/KeyboardServiceImpl.java
+++ b/services/keyboard/src/org/chromium/mojo/keyboard/KeyboardServiceImpl.java
@@ -10,8 +10,6 @@ import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.view.inputmethod.InputMethodManager;
-import org.chromium.mojo.system.Core;
-import org.chromium.mojo.system.MessagePipeHandle;
import org.chromium.mojo.system.MojoException;
import org.chromium.mojom.keyboard.KeyboardClient;
import org.chromium.mojom.keyboard.KeyboardService;
@@ -25,15 +23,8 @@ public class KeyboardServiceImpl implements KeyboardService {
private Context mContext;
- public KeyboardServiceImpl(Context context, MessagePipeHandle pipe) {
+ public KeyboardServiceImpl(Context context) {
mContext = context;
- KeyboardService.MANAGER.bind(this, pipe);
- }
-
- public KeyboardServiceImpl(Context context, Core core, MessagePipeHandle pipe) {
- mContext = context;
-
- KeyboardService.MANAGER.bind(this, pipe);
}
public static void setActiveView(View view) {
@@ -72,6 +63,7 @@ public class KeyboardServiceImpl implements KeyboardService {
imm.showSoftInput(sActiveView, 0);
}
+ @Override
public void hide() {
InputMethodManager imm =
(InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
« no previous file with comments | « services/keyboard/src/org/chromium/mojo/keyboard/InputConnectionAdaptor.java ('k') | services/sensors/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698