Small renaming for consistency
Change-Id: I10c61d441f586e63045f8c7a606a9ee61366d870main
parent
6cee61deeb
commit
1ddc1dabe6
|
@ -31,14 +31,14 @@ class GestureSuggest : public SuggestInterface {
|
||||||
virtual ~GestureSuggest();
|
virtual ~GestureSuggest();
|
||||||
|
|
||||||
int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs, int *inputYs,
|
int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs, int *inputYs,
|
||||||
int *times, int *pointerIds, int *codes, int inputSize, int commitPoint, int *outWords,
|
int *times, int *pointerIds, int *inputCodePoints, int inputSize, int commitPoint,
|
||||||
int *frequencies, int *outputIndices, int *outputTypes) const {
|
int *outWords, int *frequencies, int *outputIndices, int *outputTypes) const {
|
||||||
if (!mSuggestInterface) {
|
if (!mSuggestInterface) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return mSuggestInterface->getSuggestions(pInfo, traverseSession, inputXs, inputYs, times,
|
return mSuggestInterface->getSuggestions(pInfo, traverseSession, inputXs, inputYs, times,
|
||||||
pointerIds, codes, inputSize, commitPoint, outWords, frequencies, outputIndices,
|
pointerIds, inputCodePoints, inputSize, commitPoint, outWords, frequencies,
|
||||||
outputTypes);
|
outputIndices, outputTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setGestureSuggestFactoryMethod(SuggestInterface *(*factoryMethod)()) {
|
static void setGestureSuggestFactoryMethod(SuggestInterface *(*factoryMethod)()) {
|
||||||
|
|
|
@ -26,8 +26,9 @@ class ProximityInfo;
|
||||||
class SuggestInterface {
|
class SuggestInterface {
|
||||||
public:
|
public:
|
||||||
virtual int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs,
|
virtual int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs,
|
||||||
int *inputYs, int *times, int *pointerIds, int *codes, int inputSize, int commitPoint,
|
int *inputYs, int *times, int *pointerIds, int *inputCodePoints, int inputSize,
|
||||||
int *outWords, int *frequencies, int *outputIndices, int *outputTypes) const = 0;
|
int commitPoint, int *outWords, int *frequencies, int *outputIndices,
|
||||||
|
int *outputTypes) const = 0;
|
||||||
SuggestInterface() {}
|
SuggestInterface() {}
|
||||||
virtual ~SuggestInterface() {}
|
virtual ~SuggestInterface() {}
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -26,20 +26,19 @@ class ProximityInfo;
|
||||||
|
|
||||||
class TypingSuggest : public SuggestInterface {
|
class TypingSuggest : public SuggestInterface {
|
||||||
public:
|
public:
|
||||||
TypingSuggest() : mSuggestInterface(getTypingSuggestInstance()) {
|
TypingSuggest() : mSuggestInterface(getTypingSuggestInstance()) {}
|
||||||
}
|
|
||||||
|
|
||||||
virtual ~TypingSuggest();
|
virtual ~TypingSuggest();
|
||||||
|
|
||||||
int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs, int *inputYs,
|
int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs, int *inputYs,
|
||||||
int *times, int *pointerIds, int *codes, int inputSize, int commitPoint, int *outWords,
|
int *times, int *pointerIds, int *inputCodePoints, int inputSize, int commitPoint,
|
||||||
int *frequencies, int *outputIndices, int *outputTypes) const {
|
int *outWords, int *frequencies, int *outputIndices, int *outputTypes) const {
|
||||||
if (!mSuggestInterface) {
|
if (!mSuggestInterface) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return mSuggestInterface->getSuggestions(pInfo, traverseSession, inputXs, inputYs, times,
|
return mSuggestInterface->getSuggestions(pInfo, traverseSession, inputXs, inputYs, times,
|
||||||
pointerIds, codes, inputSize, commitPoint, outWords, frequencies, outputIndices,
|
pointerIds, inputCodePoints, inputSize, commitPoint, outWords, frequencies,
|
||||||
outputTypes);
|
outputIndices, outputTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setTypingSuggestFactoryMethod(SuggestInterface *(*factoryMethod)()) {
|
static void setTypingSuggestFactoryMethod(SuggestInterface *(*factoryMethod)()) {
|
||||||
|
|
Loading…
Reference in New Issue