From 884cef8f1a6f00d95f686e5cdba9b147ab4aa8a9 Mon Sep 17 00:00:00 2001 From: "cpu@chromium.org" Date: Mon, 5 Nov 2012 21:22:12 +0000 Subject: Better mouse support for metro aura -Wheel, r-click and l-click now discriminated -More efficient, clean mouse event handling Note; wheel event not properly handled. That is a bigger CL that will come later. BUG=151718 TEST= right click and left click Review URL: https://codereview.chromium.org/11312025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166034 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/metro_viewer/metro_viewer_messages.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'ui/metro_viewer') diff --git a/ui/metro_viewer/metro_viewer_messages.h b/ui/metro_viewer/metro_viewer_messages.h index ef72ec9..1a43e4c 100644 --- a/ui/metro_viewer/metro_viewer_messages.h +++ b/ui/metro_viewer/metro_viewer_messages.h @@ -6,10 +6,14 @@ #include "base/basictypes.h" #include "ipc/ipc_message_macros.h" +#include "ui/base/events/event_constants.h" #include "ui/gfx/native_widget_types.h" #define IPC_MESSAGE_START MetroViewerMsgStart +IPC_ENUM_TRAITS(ui::EventType) +IPC_ENUM_TRAITS(ui::EventFlags) + // Messages sent from the viewer to the browser. // Inform the browser of the surface to target for compositing. @@ -21,10 +25,12 @@ IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseMoved, int32, /* y-coordinate */ int32 /* modifiers */) // Inforoms the brower that a mouse button was pressed. -IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseButton, - int32, /* x-coordinate */ - int32, /* y-coordinate */ - int32 /* modifiers */) +IPC_MESSAGE_CONTROL5(MetroViewerHostMsg_MouseButton, + int32, /* x-coordinate */ + int32, /* y-coordinate */ + int32, /* extra */ + ui::EventType, /* event type */ + ui::EventFlags /* event flags */) // Informs the browser that a key was pressed. IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_KeyDown, uint32, /* virtual key */ -- cgit v1.1