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

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

Issue 1471993002: Resume cursor blinking on closing context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: robusted onContextMenuClosed() and fixed nits Created 5 years 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/WebContents.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
index 919fd1b4dca316cb9b6b32efe563f28511790d82..4a1729b1a90fbce882cd943cfbf5b2c3dec951f7 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
@@ -323,6 +323,18 @@ public interface WebContents extends Parcelable {
void removeObserver(WebContentsObserver observer);
/**
+ * Called when context menu gets opened.
+ */
+ void onContextMenuOpened();
+
+ /**
+ * Called when context menu gets closed. Note that closing context menu that is
+ * not triggered by WebContents will still call this. However, it will have no effect
+ * if onContextMenuOpened() isn't called in advance.
+ */
+ void onContextMenuClosed();
+
+ /**
* @return The character encoding for the current visible page.
*/
@VisibleForTesting

Powered by Google App Engine
This is Rietveld 408576698