diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 03:50:39 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 03:50:39 +0000 |
commit | e943d666020b7275d7fb70db625b47f69712d3b3 (patch) | |
tree | d56f0d56bb766103e8c51566f46197966a689cb1 /chrome/chrome.gyp | |
parent | d66688b2a167882dad56fcb6d963d918ed413052 (diff) | |
download | chromium_src-e943d666020b7275d7fb70db625b47f69712d3b3.zip chromium_src-e943d666020b7275d7fb70db625b47f69712d3b3.tar.gz chromium_src-e943d666020b7275d7fb70db625b47f69712d3b3.tar.bz2 |
Allow external hosts to handle the context menu and thus be able to customize it.
Changes include
1. A HandleContextMenu function which can be implemented by a TabContentsDelegate. Currently only ExternalTabContainer implements this.
2. Removed InitMenu calls from the RenderViewContextMenu subclass constructors, We need the subclasses to be able to override individual AddMenuItem calls. The newly added RenderViewContextMenuExternalWin class derives from RenderViewContextMenuWin whose constructor calls InitMenu. This happens at a time when the vtable is not yet setup. To fix this we added an Init function to the RenderViewContextMenu base class which then calls a virtual function DoInit, which derived classes can override to perform specific initializations.
3. Added automation messages to send over context menu events to external hosts and back
amit, please review everything. estade please review changes to tab_contents_view_gtk.cc and
render_view_context_menu_gtk.cc. pinkerton please review changes to tab_contents_view_mac.mm and
render_view_context_menu_mac.mm
Review URL: http://codereview.chromium.org/119429
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18250 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r-- | chrome/chrome.gyp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index 583cafa..735ee10 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -1355,6 +1355,8 @@ 'browser/tab_contents/render_view_context_menu_mac.h', 'browser/tab_contents/render_view_context_menu_win.cc', 'browser/tab_contents/render_view_context_menu_win.h', + 'browser/tab_contents/render_view_context_menu_external_win.cc', + 'browser/tab_contents/render_view_context_menu_external_win.h', 'browser/tab_contents/render_view_host_delegate_helper.cc', 'browser/tab_contents/render_view_host_delegate_helper.h', 'browser/tab_contents/render_view_host_manager.cc', |