aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/gesture/impl/incremental_decoder_impl.h
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2012-06-30 08:53:33 +0900
committerKen Wakasa <kwakasa@google.com>2012-07-02 20:20:42 +0900
commit8658e552f350167bb8f5af7b9e991775f2cc6a6d (patch)
treedd2045310f65d25f74ad9ef390595620b72a397a /native/jni/src/gesture/impl/incremental_decoder_impl.h
parent26c45718a595e96a3fffd4fc6307e926a8c2ad70 (diff)
downloadlatinime-8658e552f350167bb8f5af7b9e991775f2cc6a6d.tar.gz
latinime-8658e552f350167bb8f5af7b9e991775f2cc6a6d.tar.xz
latinime-8658e552f350167bb8f5af7b9e991775f2cc6a6d.zip
Makefile and source code structure update for LatinIME AOSP build
Change-Id: Ia2ab54651ef96521fce01fe4755147909b818803
Diffstat (limited to 'native/jni/src/gesture/impl/incremental_decoder_impl.h')
-rw-r--r--native/jni/src/gesture/impl/incremental_decoder_impl.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/native/jni/src/gesture/impl/incremental_decoder_impl.h b/native/jni/src/gesture/impl/incremental_decoder_impl.h
index 84121e8e2..50ed14303 100644
--- a/native/jni/src/gesture/impl/incremental_decoder_impl.h
+++ b/native/jni/src/gesture/impl/incremental_decoder_impl.h
@@ -17,25 +17,30 @@
#ifndef LATINIME_INCREMENTAL_DECODER_IMPL_H
#define LATINIME_INCREMENTAL_DECODER_IMPL_H
-#include "bigram_dictionary.h"
#include "defines.h"
#include "incremental_decoder_interface.h"
-#include "unigram_dictionary.h"
namespace latinime {
-class IncrementalDecoderImpl : IncrementalDecoderInterface {
+class UnigramDictionary;
+class BigramDictionary;
+class IncrementalDecoderImpl : public IncrementalDecoderInterface {
public:
- IncrementalDecoderImpl(int maxWordLength, int maxWords) { };
- void setDict(const UnigramDictionary *dict, const BigramDictionary *bigram,
- const uint8_t *dictRoot, int rootPos) { };
- void setPrevWord(const int32_t *prevWord, int prevWordLength) { };
- void reset() { };
+ IncrementalDecoderImpl(int maxWordLength, int maxWords) { };
+ void setDict(const UnigramDictionary *dict, const BigramDictionary *bigram,
+ const uint8_t *dictRoot, int rootPos) { };
+ void setPrevWord(const int32_t *prevWord, int prevWordLength) { };
+ void reset() { };
+
+ int getSuggestions(ProximityInfo *pInfo, int *inputXs, int *inputYs, int *times,
+ int *pointerIds, int *codes, int inputSize, int commitPoint,
+ unsigned short *outWords, int *frequencies, int *outputIndices) {
+ return 0;
+ }
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalDecoderImpl);
};
} // namespace latinime
-
#endif // LATINIME_INCREMENTAL_DECODER_IMPL_H