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

Unified Diff: chrome/renderer/render_view.h

Issue 5639004: Implement a useful context menu for the blocked plug-in frame:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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/renderer/custom_menu_listener.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.h
===================================================================
--- chrome/renderer/render_view.h (revision 67601)
+++ chrome/renderer/render_view.h (working copy)
@@ -55,6 +55,7 @@
class AudioMessageFilter;
class AutoFillHelper;
+class CustomMenuListener;
class DictionaryValue;
class DeviceOrientationDispatcher;
class DevToolsAgent;
@@ -337,6 +338,15 @@
// only by gears and this function can be deleted when we remove gears.
uint32 GetCPBrowsingContext();
+ // Handles registering and deregistering customer handlers for custom
+ // context menu events.
+ // To install a custom context menu, call showContextMenu() with your
+ // custom entries, followed immediately by CustomMenuListenerInstall() to
+ // register a listener for when a custom menu item is selected. Note that
+ // subsequent calls to showContextMenu() will clear the custom listener.
+ void CustomMenuListenerInstall(CustomMenuListener* listening);
+ void CustomMenuListenerDestroyed(CustomMenuListener* dead);
+
#if defined(OS_MACOSX)
// Enables/disabled plugin IME for the given plugin.
void SetPluginImeEnabled(bool enabled, int plugin_id);
@@ -1465,6 +1475,9 @@
// The external popup for the currently showing select popup.
scoped_ptr<ExternalPopupMenu> external_popup_menu_;
+ // The custom menu event listener, if any.
+ CustomMenuListener* custom_menu_listener_;
+
// ---------------------------------------------------------------------------
// ADDING NEW DATA? Please see if it fits appropriately in one of the above
// sections rather than throwing it randomly at the end. If you're adding a
« no previous file with comments | « chrome/renderer/custom_menu_listener.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698