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

Unified Diff: ppapi/cpp/dev/ime_input_event_dev.cc

Issue 8059006: Additional update on Pepper IME API and boilerplate thunk/proxy implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make win_shared happy. 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
« no previous file with comments | « ppapi/cpp/dev/ime_input_event_dev.h ('k') | ppapi/cpp/dev/text_input_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/ime_input_event_dev.cc
diff --git a/ppapi/cpp/dev/ime_input_event_dev.cc b/ppapi/cpp/dev/ime_input_event_dev.cc
index 21fe8795f838078991b3b9feadd238c81444cb96..bc1f387baa469339a3209fff4b3a0bc74b218d82 100644
--- a/ppapi/cpp/dev/ime_input_event_dev.cc
+++ b/ppapi/cpp/dev/ime_input_event_dev.cc
@@ -49,16 +49,11 @@ uint32_t IMEInputEvent_Dev::GetSegmentNumber() const {
pp_resource());
}
-std::pair<uint32_t, uint32_t>
-IMEInputEvent_Dev::GetSegmentAt(uint32_t index) const {
- std::pair<uint32_t, uint32_t> range(0, 0);
+uint32_t IMEInputEvent_Dev::GetSegmentOffset(uint32_t index) const {
if (!has_interface<PPB_IMEInputEvent_Dev>())
- return range;
- get_interface<PPB_IMEInputEvent_Dev>()->GetSegmentAt(pp_resource(),
- index,
- &range.first,
- &range.second);
- return range;
+ return 0;
+ return get_interface<PPB_IMEInputEvent_Dev>()->GetSegmentOffset(pp_resource(),
+ index);
}
int32_t IMEInputEvent_Dev::GetTargetSegment() const {
« no previous file with comments | « ppapi/cpp/dev/ime_input_event_dev.h ('k') | ppapi/cpp/dev/text_input_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698