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

Unified Diff: content/public/browser/browser_plugin_guest_delegate.h

Issue 1293963002: Fixing the Position of Context Menu for BrowserPlugin (<webview>) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/public/browser/browser_plugin_guest_delegate.h
diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h
index 000e3b627dad20110acb1d8c6358465416d369e2..aabe27bd4cd9ba07439099e9980ba79c5c0034c5 100644
--- a/content/public/browser/browser_plugin_guest_delegate.h
+++ b/content/public/browser/browser_plugin_guest_delegate.h
@@ -86,6 +86,12 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate {
// Provides the delegate with an interface with which to communicate with the
// content module.
virtual void SetGuestHost(GuestHost* guest_host) {}
+
+ // Sets the position of the context menu for the guest contents. The value
+ // reported from the guest renderer should be ignored. The reported value
+ // fromt he guest renderer is incorrect in situations where BrowserPlugin is
+ // subject to CSS transforms.
+ virtual void SetContextMenuPosition(const gfx::Point& position) {}
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698