From 02cc3a2a136626d81fe6f09471b5c6793fcc4499 Mon Sep 17 00:00:00 2001 From: "garykac@chromium.org" Date: Sat, 29 Jan 2011 01:50:44 +0000 Subject: 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 --- remoting/client/plugin/chromoting_instance.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'remoting/client') 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, -- cgit v1.1