diff options
author | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-29 01:50:44 +0000 |
---|---|---|
committer | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-29 01:50:44 +0000 |
commit | 02cc3a2a136626d81fe6f09471b5c6793fcc4499 (patch) | |
tree | 852c0e003b9e4e30d9e18df4687ad25158c6c9dc /remoting/client | |
parent | 00a6a7d212295268c1884a41365659dfd01fc2b8 (diff) | |
download | chromium_src-02cc3a2a136626d81fe6f09471b5c6793fcc4499.zip chromium_src-02cc3a2a136626d81fe6f09471b5c6793fcc4499.tar.gz chromium_src-02cc3a2a136626d81fe6f09471b5c6793fcc4499.tar.bz2 |
Handle Pepper ContextMenu event in Chromoting client plugin
BUG=none
TEST=manual testing
Review URL: http://codereview.chromium.org/6265032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client')
-rw-r--r-- | remoting/client/plugin/chromoting_instance.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc index 890c478..39cb40f 100644 --- a/remoting/client/plugin/chromoting_instance.cc +++ b/remoting/client/plugin/chromoting_instance.cc @@ -154,6 +154,11 @@ bool ChromotingInstance::HandleInputEvent(const PP_InputEvent& event) { pih->HandleMouseMoveEvent(event.u.mouse); return true; + case PP_INPUTEVENT_TYPE_CONTEXTMENU: + // We need to return true here or else we'll get a local (plugin) context + // menu instead of the mouseup event for the right click. + return true; + case PP_INPUTEVENT_TYPE_KEYDOWN: case PP_INPUTEVENT_TYPE_KEYUP: pih->HandleKeyEvent(event.type == PP_INPUTEVENT_TYPE_KEYDOWN, |