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

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

Issue 2777223004: Migrate IME state update flow (Closed)
Patch Set: rebase Created 3 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_public/browser/ImeEventObserver.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/ImeEventObserver.java b/content/public/android/java/src/org/chromium/content_public/browser/ImeEventObserver.java
new file mode 100644
index 0000000000000000000000000000000000000000..5ba308fa2ec14d33007a749f16de41c8384c41f1
--- /dev/null
+++ b/content/public/android/java/src/org/chromium/content_public/browser/ImeEventObserver.java
@@ -0,0 +1,22 @@
+// Copyright 2017 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_public.browser;
+
+/**
+ * Interface for the classes that need to be notified of IME changes.
+ */
+public interface ImeEventObserver {
+ /**
+ * Called to notify the delegate about synthetic/real key events before sending to renderer.
+ */
+ void onImeEvent();
+
+ /**
+ * Called when the focused node attribute is updated.
+ * @param editable {@code true} if the node becomes editable; else {@code false}.
+ * @param password indicates the node is of type password if {@code true}.
+ */
+ void onNodeAttributeUpdated(boolean editable, boolean password);
+}

Powered by Google App Engine
This is Rietveld 408576698