summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_delegate.h
diff options
context:
space:
mode:
authorrhashimoto@chromium.org <rhashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 16:54:12 +0000
committerrhashimoto@chromium.org <rhashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 16:54:12 +0000
commitb516e2d2ff5ad3d2a7c754b081566137fd7ed089 (patch)
tree75d5a32b65ce6b417eba6ff42fe0dbe3d1d8c5b1 /chrome_frame/chrome_frame_delegate.h
parent471072f9fd132a46b24ddd159922f6a4d099707d (diff)
downloadchromium_src-b516e2d2ff5ad3d2a7c754b081566137fd7ed089.zip
chromium_src-b516e2d2ff5ad3d2a7c754b081566137fd7ed089.tar.gz
chromium_src-b516e2d2ff5ad3d2a7c754b081566137fd7ed089.tar.bz2
Convert RenderViewContextMenu to MenuItemView.
This CL is part of general GTK removal for ChromiumOS. Menu2 uses GTK on linux so we are replacing it with MenuItemView. Chrome Frame currently passes the context menu between processes by using the HMENU. Because MenuItemView does not use HMENU, we need to use another mechanism. This CL creates a ContextMenuModel struct that is serialized into an automation message for Chrome Frame. ContextMenuModel contains the context menu definition in-band replacing the out-of-band HMENU. BUG=chromium-os:13887 TEST=none Review URL: http://codereview.chromium.org/7167002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92182 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_delegate.h')
-rw-r--r--chrome_frame/chrome_frame_delegate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome_frame/chrome_frame_delegate.h b/chrome_frame/chrome_frame_delegate.h
index 3af3bd4..582365b 100644
--- a/chrome_frame/chrome_frame_delegate.h
+++ b/chrome_frame/chrome_frame_delegate.h
@@ -21,6 +21,7 @@
class GURL;
struct AttachExternalTabParams;
struct AutomationURLRequest;
+struct ContextMenuModel;
struct MiniContextMenuParams;
struct NavigationInfo;
@@ -105,7 +106,8 @@ class ChromeFrameDelegateImpl : public ChromeFrameDelegate {
virtual void OnMessageFromChromeFrame(const std::string& message,
const std::string& origin,
const std::string& target) {}
- virtual void OnHandleContextMenu(HANDLE menu_handle, int align_flags,
+ virtual void OnHandleContextMenu(const ContextMenuModel& context_menu_model,
+ int align_flags,
const MiniContextMenuParams& params) {}
virtual void OnRequestStart(
int request_id, const AutomationURLRequest& request) {}