Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
4801fd66
Commit
4801fd66
authored
12 years ago
by
Satoshi Kataoka
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup decoder wrapper
Change-Id: Iade1c3954f151edce313856395dc5083e820aa93
parent
c2049c32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
native/jni/src/gesture/typing_decoder_wrapper.cpp
+3
-3
3 additions, 3 deletions
native/jni/src/gesture/typing_decoder_wrapper.cpp
native/jni/src/gesture/typing_decoder_wrapper.h
+7
-7
7 additions, 7 deletions
native/jni/src/gesture/typing_decoder_wrapper.h
with
10 additions
and
10 deletions
native/jni/src/gesture/
incremental
_decoder_wrapper.cpp
→
native/jni/src/gesture/
typing
_decoder_wrapper.cpp
+
3
−
3
View file @
4801fd66
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
#include
"
incremental
_decoder_wrapper.h"
#include
"
typing
_decoder_wrapper.h"
namespace
latinime
{
IncrementalDecoderInterface
*
(
*
Incremental
DecoderWrapper
::
sIncrementalDecoderFactoryMethod
)(
int
,
int
)
=
0
;
(
*
Typing
DecoderWrapper
::
sIncrementalDecoderFactoryMethod
)(
int
,
int
)
=
0
;
Incremental
DecoderWrapper
::~
Incremental
DecoderWrapper
()
{
Typing
DecoderWrapper
::~
Typing
DecoderWrapper
()
{
delete
mIncrementalDecoderInterface
;
}
}
// namespace latinime
This diff is collapsed.
Click to expand it.
native/jni/src/gesture/
incremental
_decoder_wrapper.h
→
native/jni/src/gesture/
typing
_decoder_wrapper.h
+
7
−
7
View file @
4801fd66
...
...
@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef LATINIME_
INCREMENTAL
_DECODER_WRAPPER_H
#define LATINIME_
INCREMENTAL
_DECODER_WRAPPER_H
#ifndef LATINIME_
TYPING
_DECODER_WRAPPER_H
#define LATINIME_
TYPING
_DECODER_WRAPPER_H
#include
"defines.h"
#include
"incremental_decoder_interface.h"
...
...
@@ -26,13 +26,13 @@ class UnigramDictionary;
class
BigramDictionary
;
class
ProximityInfo
;
class
Incremental
DecoderWrapper
:
public
IncrementalDecoderInterface
{
class
Typing
DecoderWrapper
:
public
IncrementalDecoderInterface
{
public:
Incremental
DecoderWrapper
(
const
int
maxWordLength
,
const
int
maxWords
)
Typing
DecoderWrapper
(
const
int
maxWordLength
,
const
int
maxWords
)
:
mIncrementalDecoderInterface
(
getIncrementalDecoderInstance
(
maxWordLength
,
maxWords
))
{
}
virtual
~
Incremental
DecoderWrapper
();
virtual
~
Typing
DecoderWrapper
();
int
getSuggestions
(
ProximityInfo
*
pInfo
,
void
*
traverseSession
,
int
*
inputXs
,
int
*
inputYs
,
int
*
times
,
int
*
pointerIds
,
int
*
codes
,
int
inputSize
,
int
commitPoint
,
int
*
outWords
,
...
...
@@ -51,7 +51,7 @@ class IncrementalDecoderWrapper : public IncrementalDecoderInterface {
}
private
:
DISALLOW_IMPLICIT_CONSTRUCTORS
(
Incremental
DecoderWrapper
);
DISALLOW_IMPLICIT_CONSTRUCTORS
(
Typing
DecoderWrapper
);
static
IncrementalDecoderInterface
*
getIncrementalDecoderInstance
(
int
maxWordLength
,
int
maxWords
)
{
if
(
sIncrementalDecoderFactoryMethod
)
{
...
...
@@ -64,4 +64,4 @@ class IncrementalDecoderWrapper : public IncrementalDecoderInterface {
IncrementalDecoderInterface
*
mIncrementalDecoderInterface
;
};
}
// namespace latinime
#endif // LATINIME_
INCREMENTAL
_DECODER_WRAPPER_H
#endif // LATINIME_
TYPING
_DECODER_WRAPPER_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment