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

Unified Diff: content/browser/android/content_view_core_impl.h

Issue 2724533002: Deduplicating code |WebContentsDelegateAndroid::ShowContextMenu()| (Closed)
Patch Set: ContextMenuParams is a struct Created 3 years, 10 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: content/browser/android/content_view_core_impl.h
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index 20b20f87d924921b4850e2a9837895d20a1019b8..58b280ff0900c6ec52926a4b9e7c674630774e2c 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -38,6 +38,7 @@ namespace content {
class GinJavaBridgeDispatcherHost;
class RenderFrameHost;
class RenderWidgetHostViewAndroid;
+struct ContextMenuParams;
struct MenuItem;
class ContentViewCoreImpl : public ContentViewCore,
@@ -55,7 +56,7 @@ class ContentViewCoreImpl : public ContentViewCore,
base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override;
WebContents* GetWebContents() const override;
ui::WindowAndroid* GetWindowAndroid() const override;
- void ShowPastePopup(int x, int y) override;
+ bool ShowPastePopup(const ContextMenuParams& params) override;
void AddObserver(ContentViewCoreImplObserver* observer);
void RemoveObserver(ContentViewCoreImplObserver* observer);

Powered by Google App Engine
This is Rietveld 408576698