Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/input_event_data.h

Issue 9353013: Add GetUsbKeyCode dev interface for Pepper key events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo (byte -> bit) Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/input_event.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can 2 // Use of this source code is governed by a BSD-style license that can
3 // be found in the LICENSE file. 3 // be found in the LICENSE file.
4 4
5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_INPUT_EVENT_DATA_H_ 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_INPUT_EVENT_DATA_H_
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_INPUT_EVENT_DATA_H_ 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_INPUT_EVENT_DATA_H_
7 7
8 #include "native_client/src/include/nacl_macros.h" 8 #include "native_client/src/include/nacl_macros.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_macros.h" 10 #include "ppapi/c/pp_macros.h"
(...skipping 14 matching lines...) Expand all
25 PP_InputEvent_MouseButton mouse_button; 25 PP_InputEvent_MouseButton mouse_button;
26 int32_t mouse_click_count; 26 int32_t mouse_click_count;
27 PP_Point mouse_position; 27 PP_Point mouse_position;
28 PP_Point mouse_movement; 28 PP_Point mouse_movement;
29 29
30 PP_FloatPoint wheel_delta; 30 PP_FloatPoint wheel_delta;
31 PP_FloatPoint wheel_ticks; 31 PP_FloatPoint wheel_ticks;
32 PP_Bool wheel_scroll_by_page; 32 PP_Bool wheel_scroll_by_page;
33 33
34 uint32_t key_code; 34 uint32_t key_code;
35 uint32_t usb_scan_code;
36
37 // Required for consistent 64-bit alignment on all platforms.
38 uint32_t unused_padding;
dmichael (off chromium) 2012/02/14 19:40:46 drive-by... please also initialize these (includi
garykac 2012/02/14 23:21:16 Done.
35 }; 39 };
36 // Make sure that the size is consistent across platforms, so the alignment is 40 // Make sure that the size is consistent across platforms, so the alignment is
37 // consistent. Note the fields above are carefully ordered to make sure it is 41 // consistent. Note the fields above are carefully ordered to make sure it is
38 // consistent. New fields may require some adjustment to keep a consistent size 42 // consistent. New fields may require some adjustment to keep a consistent size
39 // and alignment. TODO(dmichael): This is only required because we don't pickle 43 // and alignment. TODO(dmichael): This is only required because we don't pickle
40 // the type. As a short-cut, we memcpy it instead. It would be cleaner to 44 // the type. As a short-cut, we memcpy it instead. It would be cleaner to
41 // pickle this struct. 45 // pickle this struct.
42 PP_COMPILE_ASSERT_SIZE_IN_BYTES(InputEventData, 64); 46 PP_COMPILE_ASSERT_SIZE_IN_BYTES(InputEventData, 72);
43 47
44 } // namespace ppapi_proxy 48 } // namespace ppapi_proxy
45 49
46 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_INPUT_EVENT_DATA_H_ 50 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_INPUT_EVENT_DATA_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/input_event.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698