Modify to get the encoded offset in UTF8
[platform/core/uifw/dali-adaptor.git] / dali / internal / input / generic / input-method-context-factory-generic.cpp
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // EXTERNAL INCLUDES
19 #include <memory>
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/input/common/input-method-context-factory.h>
23 #include <dali/internal/input/generic/input-method-context-impl-generic.h>
24
25 namespace Dali
26 {
27
28 namespace Internal
29 {
30
31 namespace Adaptor
32 {
33
34 class InputMethodContext;
35
36 namespace InputMethodContextFactory
37 {
38
39 // InputMethodContext Factory to be implemented by the platform
40 InputMethodContextPtr CreateInputMethodContext( Dali::Actor actor )
41 {
42   return Dali::Internal::Adaptor::InputMethodContextGeneric::New( actor );
43 }
44
45 }
46
47 }
48
49 }
50
51 }