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

Unified Diff: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h

Issue 667273002: Fix context menu positioning in MimeHandlerViewGuest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase @tott, fix merge conflict Created 6 years, 2 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: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h
diff --git a/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h
index 53e8cc7154548536c8d1a40d17e356a8fc53b0d6..b9a6fe3533adf9d3719e736e029e36693c7d304c 100644
--- a/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h
+++ b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h
@@ -9,6 +9,7 @@
namespace content {
class WebContents;
+struct ContextMenuParams;
} // namespace content
namespace extensions {
@@ -24,6 +25,10 @@ class MimeHandlerViewGuestDelegate {
// Attaches helpers upon initializing the WebContents.
virtual void AttachHelpers() {}
+ // Handles context menu, or returns false if unhandled.
+ virtual bool HandleContextMenu(content::WebContents* web_contents,
+ const content::ContextMenuParams& params);
+
// Request to change the zoom level of the top level page containing
// this view.
virtual void ChangeZoom(bool zoom_in) {}

Powered by Google App Engine
This is Rietveld 408576698