diff options
author | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 20:44:16 +0000 |
---|---|---|
committer | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 20:44:16 +0000 |
commit | 9ed88aedad5c7f9865f783f18de257d5e1185612 (patch) | |
tree | 8d527f35600324030076fbe58f8735ae27df4362 /ui/metro_viewer | |
parent | 33204e20863bca9a9857c338400777be6176537a (diff) | |
download | chromium_src-9ed88aedad5c7f9865f783f18de257d5e1185612.zip chromium_src-9ed88aedad5c7f9865f783f18de257d5e1185612.tar.gz chromium_src-9ed88aedad5c7f9865f783f18de257d5e1185612.tar.bz2 |
Add keyboard events to metro aura
This is the first part since there IME are issues
that need to be sorted out before this can fully
work. In particular, InputMethodEventFilter::PreHandleKeyEvent
needs changes not to assume native events.
BUG=151718
TEST=none
Review URL: https://codereview.chromium.org/11194044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162781 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/metro_viewer')
-rw-r--r-- | ui/metro_viewer/metro_viewer_messages.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/ui/metro_viewer/metro_viewer_messages.h b/ui/metro_viewer/metro_viewer_messages.h index 66d482c..b94a561 100644 --- a/ui/metro_viewer/metro_viewer_messages.h +++ b/ui/metro_viewer/metro_viewer_messages.h @@ -17,13 +17,21 @@ IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetTargetSurface, gfx::NativeViewId /* target hwnd */) // Informs the browser that the mouse moved. IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseMoved, - int, /* x-coordinate */ - int, /* y-coordinate */ - int /* modifiers */) + int32, /* x-coordinate */ + int32, /* y-coordinate */ + int32 /* modifiers */) // Inforoms the brower that a mouse button was pressed. IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_MouseButton, - int, /* x-coordinate */ - int, /* y-coordinate */ - int /* modifiers */) - - + int32, /* x-coordinate */ + int32, /* y-coordinate */ + int32 /* modifiers */) +// Informs the browser that a key was pressed. +IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_KeyDown, + uint32, /* virtual key */ + uint32, /* repeat count */ + uint32 /* scan code*/); +// Informs the browser that a key was released. +IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_KeyUp, + uint32, /* virtual key */ + uint32, /* repeat count */ + uint32 /* scan code*/); |