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

Unified Diff: blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/input/ImeEditText.java

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 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: blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/input/ImeEditText.java
diff --git a/blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/input/ImeEditText.java b/blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/input/ImeEditText.java
deleted file mode 100644
index dc6ada9c6434eb977fd594252d3ead325ff716f0..0000000000000000000000000000000000000000
--- a/blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/input/ImeEditText.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2016 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.blimp.core.contents.input;
-
-import android.app.Dialog;
-import android.content.Context;
-import android.util.AttributeSet;
-import android.view.KeyEvent;
-import android.widget.EditText;
-
-/**
- * A {@link EditText} contained in a dialog which allows users to enter text.
- * The dialog is dismissed on pressing back button.
- */
-public class ImeEditText extends EditText {
- // The alert dialog that contains this text box.
- private Dialog mParentDialog;
-
- public ImeEditText(Context context, AttributeSet attrs) {
- super(context, attrs);
- }
-
- /**
- * Sets the parent view for this view.
- * @param dialog The dialog containing this view.
- */
- public void initialize(Dialog dialog) {
- mParentDialog = dialog;
- }
-
- /**
- * Dismiss the text input dialog as soon as back button is pressed.
- */
- @Override
- public boolean dispatchKeyEventPreIme(KeyEvent event) {
- if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) {
- mParentDialog.dismiss();
- }
- return super.dispatchKeyEventPreIme(event);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698