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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/shared_impl/input_event_impl.cc
diff --git a/ppapi/shared_impl/input_event_impl.cc b/ppapi/shared_impl/input_event_impl.cc
index 8dc653a8d3fbc581cbd292f6cc3cac0ff304a60d..5d6be4b657ff631a43b2ff3f0caeb5a52c24e532 100644
--- a/ppapi/shared_impl/input_event_impl.cc
+++ b/ppapi/shared_impl/input_event_impl.cc
@@ -102,5 +102,19 @@ PP_Var InputEventImpl::GetCharacterText() {
data_.character_text);
}
+uint32_t InputEventImpl::GetCompositionTargetSegment() {
+ return data_.composition_target_segment;
+}
+
+void InputEventImpl::GetCompositionSegments(uint32_t** segments,
+ uint32_t* size) {
+ if (segments) {
+ *segments = data_.composition_segments.data();
+ }
+ if (size) {
+ *size = data_.composition_segments.size();
+ }
+}
+
} // namespace ppapi

Powered by Google App Engine
This is Rietveld 408576698