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

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

Issue 2378793002: Added back onContextMenuClosed (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
index c11c737b89826366e5068cee28ac683b9438d488..c9c3857c564c68d12fe8524ba0f4c136d1cf0c81 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
@@ -1783,6 +1783,17 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
mContextMenuCloseObservers.removeObserver(callback);
}
+ /**
+ * @see Activity#onContextMenuClosed(Menu)
+ */
+ @Override
+ public void onContextMenuClosed(Menu menu) {
+ for (Callback<Menu> callback : mContextMenuCloseObservers) {
+ callback.onResult(menu);
+ }
+ // TODO(peconn): See if we can make WebContents use the ObserverList.
+ }
+
private void enableHardwareAcceleration() {
// HW acceleration is disabled in the manifest. Enable it only on high-end devices.
if (!SysUtils.isLowEndDevice()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698