summaryrefslogtreecommitdiffstats
path: root/ui/metro_viewer
diff options
context:
space:
mode:
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-05 21:22:12 +0000
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-05 21:22:12 +0000
commit884cef8f1a6f00d95f686e5cdba9b147ab4aa8a9 (patch)
treed875a3c455224c8569cd642926792cb4504d40d7 /ui/metro_viewer
parente99cd4dca809897000378a6a4c567ab7aa8dce2b (diff)
downloadchromium_src-884cef8f1a6f00d95f686e5cdba9b147ab4aa8a9.zip
chromium_src-884cef8f1a6f00d95f686e5cdba9b147ab4aa8a9.tar.gz
chromium_src-884cef8f1a6f00d95f686e5cdba9b147ab4aa8a9.tar.bz2
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
Diffstat (limited to 'ui/metro_viewer')
-rw-r--r--ui/metro_viewer/metro_viewer_messages.h14
1 files changed, 10 insertions, 4 deletions
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 */