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

Side by Side Diff: ppapi/shared_impl/ppb_input_event_shared.h

Issue 9353013: Add GetUsbKeyCode dev interface for Pepper key events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More header updates to fix all presubmit problems. 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/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/ppb_input_event_shared.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_SHARED_IMPL_PPB_INPUT_EVENT_SHARED_H_ 5 #ifndef PPAPI_SHARED_IMPL_PPB_INPUT_EVENT_SHARED_H_
6 #define PPAPI_SHARED_IMPL_PPB_INPUT_EVENT_SHARED_H_ 6 #define PPAPI_SHARED_IMPL_PPB_INPUT_EVENT_SHARED_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 PP_InputEvent_MouseButton mouse_button; 33 PP_InputEvent_MouseButton mouse_button;
34 PP_Point mouse_position; 34 PP_Point mouse_position;
35 int32_t mouse_click_count; 35 int32_t mouse_click_count;
36 PP_Point mouse_movement; 36 PP_Point mouse_movement;
37 37
38 PP_FloatPoint wheel_delta; 38 PP_FloatPoint wheel_delta;
39 PP_FloatPoint wheel_ticks; 39 PP_FloatPoint wheel_ticks;
40 bool wheel_scroll_by_page; 40 bool wheel_scroll_by_page;
41 41
42 uint32_t key_code; 42 uint32_t key_code;
43 uint32_t usb_key_code;
43 44
44 std::string character_text; 45 std::string character_text;
45 46
46 std::vector<uint32_t> composition_segment_offsets; 47 std::vector<uint32_t> composition_segment_offsets;
47 int32_t composition_target_segment; 48 int32_t composition_target_segment;
48 uint32_t composition_selection_start; 49 uint32_t composition_selection_start;
49 uint32_t composition_selection_end; 50 uint32_t composition_selection_end;
50 }; 51 };
51 52
52 // This simple class implements the PPB_InputEvent_API in terms of the 53 // This simple class implements the PPB_InputEvent_API in terms of the
(...skipping 16 matching lines...) Expand all
69 virtual uint32_t GetModifiers() OVERRIDE; 70 virtual uint32_t GetModifiers() OVERRIDE;
70 virtual PP_InputEvent_MouseButton GetMouseButton() OVERRIDE; 71 virtual PP_InputEvent_MouseButton GetMouseButton() OVERRIDE;
71 virtual PP_Point GetMousePosition() OVERRIDE; 72 virtual PP_Point GetMousePosition() OVERRIDE;
72 virtual int32_t GetMouseClickCount() OVERRIDE; 73 virtual int32_t GetMouseClickCount() OVERRIDE;
73 virtual PP_Point GetMouseMovement() OVERRIDE; 74 virtual PP_Point GetMouseMovement() OVERRIDE;
74 virtual PP_FloatPoint GetWheelDelta() OVERRIDE; 75 virtual PP_FloatPoint GetWheelDelta() OVERRIDE;
75 virtual PP_FloatPoint GetWheelTicks() OVERRIDE; 76 virtual PP_FloatPoint GetWheelTicks() OVERRIDE;
76 virtual PP_Bool GetWheelScrollByPage() OVERRIDE; 77 virtual PP_Bool GetWheelScrollByPage() OVERRIDE;
77 virtual uint32_t GetKeyCode() OVERRIDE; 78 virtual uint32_t GetKeyCode() OVERRIDE;
78 virtual PP_Var GetCharacterText() OVERRIDE; 79 virtual PP_Var GetCharacterText() OVERRIDE;
80 virtual PP_Bool SetUsbKeyCode(uint32_t usb_key_code) OVERRIDE;
81 virtual uint32_t GetUsbKeyCode() OVERRIDE;
79 virtual uint32_t GetIMESegmentNumber() OVERRIDE; 82 virtual uint32_t GetIMESegmentNumber() OVERRIDE;
80 virtual uint32_t GetIMESegmentOffset(uint32_t index) OVERRIDE; 83 virtual uint32_t GetIMESegmentOffset(uint32_t index) OVERRIDE;
81 virtual int32_t GetIMETargetSegment() OVERRIDE; 84 virtual int32_t GetIMETargetSegment() OVERRIDE;
82 virtual void GetIMESelection(uint32_t* start, uint32_t* end) OVERRIDE; 85 virtual void GetIMESelection(uint32_t* start, uint32_t* end) OVERRIDE;
83 86
84 private: 87 private:
85 InputEventData data_; 88 InputEventData data_;
86 89
87 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_InputEvent_Shared); 90 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_InputEvent_Shared);
88 }; 91 };
89 92
90 } // namespace ppapi 93 } // namespace ppapi
91 94
92 #endif // PPAPI_SHARED_IMPL_PPB_INPUT_EVENT_SHARED_H_ 95 #endif // PPAPI_SHARED_IMPL_PPB_INPUT_EVENT_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/ppb_input_event_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698