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

Unified Diff: chrome/browser/android/tab_android.h

Issue 73173002: Add ContextMenu support upstream for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/tab_android.h
diff --git a/chrome/browser/android/tab_android.h b/chrome/browser/android/tab_android.h
index fc694659dd90b6fa7624fc04c1a0f74d53b1d30a..e2d707fabb14410d09f67eb9d401b8a8ab7c45b3 100644
--- a/chrome/browser/android/tab_android.h
+++ b/chrome/browser/android/tab_android.h
@@ -34,7 +34,6 @@ class ChromeWebContentsDelegateAndroid;
namespace content {
class ContentViewCore;
-struct ContextMenuParams;
class WebContents;
}
@@ -82,14 +81,6 @@ class TabAndroid : public CoreTabHelperDelegate,
const base::string16& host,
const base::string16& realm) = 0;
- // Called to show the regular context menu that is triggered by a long press.
- virtual void ShowContextMenu(const content::ContextMenuParams& params) = 0;
-
- // Called to show a custom context menu. Used by the NTP.
- virtual void ShowCustomContextMenu(
- const content::ContextMenuParams& params,
- const base::Callback<void(int)>& callback) = 0;
-
// Called when context menu option to create the bookmark shortcut on
// homescreen is called.
virtual void AddShortcutToBookmark(
@@ -130,7 +121,8 @@ class TabAndroid : public CoreTabHelperDelegate,
jobject obj,
jboolean incognito,
jobject jcontent_view_core,
- jobject jweb_contents_delegate);
+ jobject jweb_contents_delegate,
+ jobject jcontext_menu_populator);
virtual void DestroyWebContents(JNIEnv* env,
jobject obj,
@@ -142,7 +134,6 @@ class TabAndroid : public CoreTabHelperDelegate,
jobject obj,
jstring jurl,
jstring jtitle);
-
bool Print(JNIEnv* env, jobject obj);
protected:
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698