summaryrefslogtreecommitdiffstats
path: root/ppapi/shared_impl/input_event_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/shared_impl/input_event_impl.cc')
-rw-r--r--ppapi/shared_impl/input_event_impl.cc29
1 files changed, 2 insertions, 27 deletions
diff --git a/ppapi/shared_impl/input_event_impl.cc b/ppapi/shared_impl/input_event_impl.cc
index d0ca57c..8dc653a 100644
--- a/ppapi/shared_impl/input_event_impl.cc
+++ b/ppapi/shared_impl/input_event_impl.cc
@@ -24,10 +24,7 @@ InputEventData::InputEventData()
wheel_ticks(PP_MakeFloatPoint(0.0f, 0.0f)),
wheel_scroll_by_page(false),
key_code(0),
- character_text(),
- composition_target_segment(-1),
- composition_selection_start(0),
- composition_selection_end(0) {
+ character_text() {
}
InputEventData::~InputEventData() {
@@ -105,27 +102,5 @@ PP_Var InputEventImpl::GetCharacterText() {
data_.character_text);
}
-uint32_t InputEventImpl::GetIMESegmentNumber() {
- if (data_.composition_segment_offsets.empty())
- return 0;
- return data_.composition_segment_offsets.size() - 1;
-}
-
-uint32_t InputEventImpl::GetIMESegmentOffset(uint32_t index) {
- if (index >= data_.composition_segment_offsets.size())
- return 0;
- return data_.composition_segment_offsets[index];
-}
-
-int32_t InputEventImpl::GetIMETargetSegment() {
- return data_.composition_target_segment;
-}
-
-void InputEventImpl::GetIMESelection(uint32_t* start, uint32_t* end) {
- if (start)
- *start = data_.composition_selection_start;
- if (end)
- *end = data_.composition_selection_end;
-}
-
} // namespace ppapi
+