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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuUi.java

Issue 2751333006: Create the base Custom Context Menu Dialog. (Closed)
Patch Set: Fixed based off tedchoc's comments Created 3 years, 9 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: chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuUi.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuUi.java b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuUi.java
index 59821973cc6be63a55ab2d10d98b9448ea15456e..2768d3470ccf705239fad60a4ec7ee9f9a367bb6 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuUi.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuUi.java
@@ -26,7 +26,12 @@ public interface ContextMenuUi {
* @param onItemClicked When the user has pressed an item the menuId associated with the item
* is sent back through {@link Callback#onResult(Object)}. The ids that
* could be called are in ids.xml.
+ * @param onMenuShown After the menu is displayed this method should be called to present a
+ * full menu.
+ * @param onMenuClosed When the menu is closed, this method is called to do any possible final
+ * clean up.
*/
void displayMenu(Activity activity, ContextMenuParams params,
- List<Pair<Integer, List<ContextMenuItem>>> items, Callback<Integer> onItemClicked);
+ List<Pair<Integer, List<ContextMenuItem>>> items, Callback<Integer> onItemClicked,
+ Runnable onMenuShown, Runnable onMenuClosed);
}

Powered by Google App Engine
This is Rietveld 408576698