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

Side by Side Diff: ppapi/shared_impl/input_event_impl.cc

Issue 7621010: Never submit: tentative Pepper IME. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: snapshot Created 9 years, 3 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 #include "ppapi/shared_impl/input_event_impl.h" 5 #include "ppapi/shared_impl/input_event_impl.h"
6 6
7 #include "ppapi/shared_impl/tracker_base.h" 7 #include "ppapi/shared_impl/tracker_base.h"
8 #include "ppapi/shared_impl/var.h" 8 #include "ppapi/shared_impl/var.h"
9 9
10 using ppapi::thunk::PPB_InputEvent_API; 10 using ppapi::thunk::PPB_InputEvent_API;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 uint32_t InputEventImpl::GetKeyCode() { 95 uint32_t InputEventImpl::GetKeyCode() {
96 return data_.key_code; 96 return data_.key_code;
97 } 97 }
98 98
99 PP_Var InputEventImpl::GetCharacterText() { 99 PP_Var InputEventImpl::GetCharacterText() {
100 return StringVar::StringToPPVar( 100 return StringVar::StringToPPVar(
101 TrackerBase::Get()->GetModuleForInstance(pp_instance()), 101 TrackerBase::Get()->GetModuleForInstance(pp_instance()),
102 data_.character_text); 102 data_.character_text);
103 } 103 }
104 104
105 uint32_t InputEventImpl::GetCompositionTargetSegment() {
106 return data_.composition_target_segment;
107 }
108
109 void InputEventImpl::GetCompositionSegments(uint32_t** segments,
110 uint32_t* size) {
111 if (segments) {
112 *segments = data_.composition_segments.data();
113 }
114 if (size) {
115 *size = data_.composition_segments.size();
116 }
117 }
118
105 } // namespace ppapi 119 } // namespace ppapi
106 120
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698