diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-31 21:41:08 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-31 21:41:08 +0000 |
commit | b29aa74b75d57e1dc78bb151f1b7b2153d13ae3f (patch) | |
tree | c06576af8874b736101b045e4e1d75cfed7ba897 /chrome/renderer/render_view.h | |
parent | 314e594492cfd5c23225763cb46c5cd190b5551c (diff) | |
download | chromium_src-b29aa74b75d57e1dc78bb151f1b7b2153d13ae3f.zip chromium_src-b29aa74b75d57e1dc78bb151f1b7b2153d13ae3f.tar.gz chromium_src-b29aa74b75d57e1dc78bb151f1b7b2153d13ae3f.tar.bz2 |
Pepper/Flapper: First pass at context menu implementation.
This meets the needs of Flapper. We may want to generalize/restrict/modify the
API for inclusion into PPAPI, but hopefully this lays a foundation.
BUG=none
TEST=Flapper context menus work (with the right version of Flapper)
Review URL: http://codereview.chromium.org/6253017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73193 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r-- | chrome/renderer/render_view.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h index 92a3577..314224d 100644 --- a/chrome/renderer/render_view.h +++ b/chrome/renderer/render_view.h @@ -114,6 +114,7 @@ class PhishingClassifierDelegate; } namespace webkit_glue { +struct CustomContextMenuContext; class ImageResourceFetcher; struct FileUploadData; struct FormData; @@ -826,7 +827,8 @@ class RenderView : public RenderWidget, const PP_Flash_NetAddress& local_addr, const PP_Flash_NetAddress& remote_addr); #endif - void OnContextMenuClosed(); + void OnContextMenuClosed( + const webkit_glue::CustomContextMenuContext& custom_context); void OnCopy(); void OnCopyImageAt(int x, int y); #if defined(OS_MACOSX) @@ -838,7 +840,9 @@ class RenderView : public RenderWidget, void OnCSSInsertRequest(const std::wstring& frame_xpath, const std::string& css, const std::string& id); - void OnCustomContextMenuAction(unsigned action); + void OnCustomContextMenuAction( + const webkit_glue::CustomContextMenuContext& custom_context, + unsigned action); void OnDelete(); void OnDeterminePageLanguage(); void OnDisableScrollbarsForSmallWindows( |