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 |