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

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

Issue 2026813003: Enable external popup menu in Blimp, part 2/2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index 980704cf16b18af25807b656539ea3bc0105cdc3..dc8799282471ce6a7abecc335e80014b33e1a78b 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
#include <string>
+#include <vector>
#include "base/callback_forward.h"
#include "build/build_config.h"
@@ -181,6 +182,18 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// use by resource metrics.
virtual int GetProxyCount() = 0;
+#if defined(USE_EXTERNAL_POPUP_MENU)
+#if defined(OS_MACOSX)
+ // Select popup menu related methods (for external popup menus).
+ virtual void DidSelectPopupMenuItem(int selected_index) = 0;
+ virtual void DidCancelPopupMenu() = 0;
+#else
+ virtual void DidSelectPopupMenuItems(
+ const std::vector<int>& selected_indices) = 0;
+ virtual void DidCancelPopupMenu() = 0;
+#endif
+#endif
+
private:
// This interface should only be implemented inside content.
friend class RenderFrameHostImpl;
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/public/browser/web_contents_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698