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

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: 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
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 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_scan_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 24 matching lines...) Expand all
77 virtual uint32_t GetModifiers() OVERRIDE; 78 virtual uint32_t GetModifiers() OVERRIDE;
78 virtual PP_InputEvent_MouseButton GetMouseButton() OVERRIDE; 79 virtual PP_InputEvent_MouseButton GetMouseButton() OVERRIDE;
79 virtual PP_Point GetMousePosition() OVERRIDE; 80 virtual PP_Point GetMousePosition() OVERRIDE;
80 virtual int32_t GetMouseClickCount() OVERRIDE; 81 virtual int32_t GetMouseClickCount() OVERRIDE;
81 virtual PP_Point GetMouseMovement() OVERRIDE; 82 virtual PP_Point GetMouseMovement() OVERRIDE;
82 virtual PP_FloatPoint GetWheelDelta() OVERRIDE; 83 virtual PP_FloatPoint GetWheelDelta() OVERRIDE;
83 virtual PP_FloatPoint GetWheelTicks() OVERRIDE; 84 virtual PP_FloatPoint GetWheelTicks() OVERRIDE;
84 virtual PP_Bool GetWheelScrollByPage() OVERRIDE; 85 virtual PP_Bool GetWheelScrollByPage() OVERRIDE;
85 virtual uint32_t GetKeyCode() OVERRIDE; 86 virtual uint32_t GetKeyCode() OVERRIDE;
86 virtual PP_Var GetCharacterText() OVERRIDE; 87 virtual PP_Var GetCharacterText() OVERRIDE;
88 virtual PP_Bool SetUsbScanCode(uint32_t usb_scan_code) OVERRIDE;
89 virtual uint32_t GetUsbScanCode() OVERRIDE;
87 virtual uint32_t GetIMESegmentNumber() OVERRIDE; 90 virtual uint32_t GetIMESegmentNumber() OVERRIDE;
88 virtual uint32_t GetIMESegmentOffset(uint32_t index) OVERRIDE; 91 virtual uint32_t GetIMESegmentOffset(uint32_t index) OVERRIDE;
89 virtual int32_t GetIMETargetSegment() OVERRIDE; 92 virtual int32_t GetIMETargetSegment() OVERRIDE;
90 virtual void GetIMESelection(uint32_t* start, uint32_t* end) OVERRIDE; 93 virtual void GetIMESelection(uint32_t* start, uint32_t* end) OVERRIDE;
91 94
92 private: 95 private:
93 InputEventData data_; 96 InputEventData data_;
94 97
95 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_InputEvent_Shared); 98 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_InputEvent_Shared);
96 }; 99 };
97 100
98 } // namespace ppapi 101 } // namespace ppapi
99 102
100 #endif // PPAPI_SHARED_IMPL_PPB_INPUT_EVENT_SHARED_H_ 103 #endif // PPAPI_SHARED_IMPL_PPB_INPUT_EVENT_SHARED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698