From 1ddc1dabe6b049bb76a60acf23019e1bd96674a3 Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Tue, 15 Jan 2013 19:13:37 +0900 Subject: [PATCH] Small renaming for consistency Change-Id: I10c61d441f586e63045f8c7a606a9ee61366d870 --- native/jni/src/suggest/gesture_suggest.h | 8 ++++---- native/jni/src/suggest/suggest_interface.h | 5 +++-- native/jni/src/suggest/typing_suggest.h | 11 +++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/native/jni/src/suggest/gesture_suggest.h b/native/jni/src/suggest/gesture_suggest.h index eff6dc963..82c3a69ad 100644 --- a/native/jni/src/suggest/gesture_suggest.h +++ b/native/jni/src/suggest/gesture_suggest.h @@ -31,14 +31,14 @@ class GestureSuggest : public SuggestInterface { virtual ~GestureSuggest(); int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs, int *inputYs, - int *times, int *pointerIds, int *codes, int inputSize, int commitPoint, int *outWords, - int *frequencies, int *outputIndices, int *outputTypes) const { + int *times, int *pointerIds, int *inputCodePoints, int inputSize, int commitPoint, + int *outWords, int *frequencies, int *outputIndices, int *outputTypes) const { if (!mSuggestInterface) { return 0; } return mSuggestInterface->getSuggestions(pInfo, traverseSession, inputXs, inputYs, times, - pointerIds, codes, inputSize, commitPoint, outWords, frequencies, outputIndices, - outputTypes); + pointerIds, inputCodePoints, inputSize, commitPoint, outWords, frequencies, + outputIndices, outputTypes); } static void setGestureSuggestFactoryMethod(SuggestInterface *(*factoryMethod)()) { diff --git a/native/jni/src/suggest/suggest_interface.h b/native/jni/src/suggest/suggest_interface.h index 0fb54266c..0bb85d7e5 100644 --- a/native/jni/src/suggest/suggest_interface.h +++ b/native/jni/src/suggest/suggest_interface.h @@ -26,8 +26,9 @@ class ProximityInfo; class SuggestInterface { public: virtual int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs, - int *inputYs, int *times, int *pointerIds, int *codes, int inputSize, int commitPoint, - int *outWords, int *frequencies, int *outputIndices, int *outputTypes) const = 0; + int *inputYs, int *times, int *pointerIds, int *inputCodePoints, int inputSize, + int commitPoint, int *outWords, int *frequencies, int *outputIndices, + int *outputTypes) const = 0; SuggestInterface() {} virtual ~SuggestInterface() {} private: diff --git a/native/jni/src/suggest/typing_suggest.h b/native/jni/src/suggest/typing_suggest.h index 1e944cbc2..678037aa2 100644 --- a/native/jni/src/suggest/typing_suggest.h +++ b/native/jni/src/suggest/typing_suggest.h @@ -26,20 +26,19 @@ class ProximityInfo; class TypingSuggest : public SuggestInterface { public: - TypingSuggest() : mSuggestInterface(getTypingSuggestInstance()) { - } + TypingSuggest() : mSuggestInterface(getTypingSuggestInstance()) {} virtual ~TypingSuggest(); int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs, int *inputYs, - int *times, int *pointerIds, int *codes, int inputSize, int commitPoint, int *outWords, - int *frequencies, int *outputIndices, int *outputTypes) const { + int *times, int *pointerIds, int *inputCodePoints, int inputSize, int commitPoint, + int *outWords, int *frequencies, int *outputIndices, int *outputTypes) const { if (!mSuggestInterface) { return 0; } return mSuggestInterface->getSuggestions(pInfo, traverseSession, inputXs, inputYs, times, - pointerIds, codes, inputSize, commitPoint, outWords, frequencies, outputIndices, - outputTypes); + pointerIds, inputCodePoints, inputSize, commitPoint, outWords, frequencies, + outputIndices, outputTypes); } static void setTypingSuggestFactoryMethod(SuggestInterface *(*factoryMethod)()) {