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

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

Issue 9353013: Add GetUsbKeyCode dev interface for Pepper key events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add GetUsbScanCode_Dev to Pepper/NaCl interface 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_PLUGIN_INPUT_EVENT_H_ 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_INPUT_EVENT_H_
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_INPUT_EVENT_H_ 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_INPUT_EVENT_H_
7 7
8 #include "native_client/src/include/nacl_macros.h" 8 #include "native_client/src/include/nacl_macros.h"
9 #include "native_client/src/shared/ppapi_proxy/input_event_data.h" 9 #include "native_client/src/shared/ppapi_proxy/input_event_data.h"
10 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h" 10 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h"
(...skipping 28 matching lines...) Expand all
39 PP_InputEvent_MouseButton GetMouseButton() const; 39 PP_InputEvent_MouseButton GetMouseButton() const;
40 PP_Point GetMousePosition() const; 40 PP_Point GetMousePosition() const;
41 int32_t GetMouseClickCount() const; 41 int32_t GetMouseClickCount() const;
42 PP_Point GetMouseMovement() const; 42 PP_Point GetMouseMovement() const;
43 43
44 PP_FloatPoint GetWheelDelta() const; 44 PP_FloatPoint GetWheelDelta() const;
45 PP_FloatPoint GetWheelTicks() const; 45 PP_FloatPoint GetWheelTicks() const;
46 PP_Bool GetWheelScrollByPage() const; 46 PP_Bool GetWheelScrollByPage() const;
47 47
48 uint32_t GetKeyCode() const; 48 uint32_t GetKeyCode() const;
49 uint32_t GetUsbScanCode_Dev() const;
49 PP_Var GetCharacterText() const; 50 PP_Var GetCharacterText() const;
50 51
51 private: 52 private:
52 IMPLEMENT_RESOURCE(PluginInputEvent); 53 IMPLEMENT_RESOURCE(PluginInputEvent);
53 NACL_DISALLOW_COPY_AND_ASSIGN(PluginInputEvent); 54 NACL_DISALLOW_COPY_AND_ASSIGN(PluginInputEvent);
54 55
55 InputEventData input_event_data_; 56 InputEventData input_event_data_;
56 PP_Var character_text_; // Undefined if this is not a character event. 57 PP_Var character_text_; // Undefined if this is not a character event.
57 }; 58 };
58 59
59 } // namespace ppapi_proxy 60 } // namespace ppapi_proxy
60 61
61 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_INPUT_EVENT_H_ 62 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_INPUT_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698