Merge "Support multiple surfaces for partial update" into devel/master
[platform/core/uifw/dali-adaptor.git] / dali / internal / input / generic / virtual-keyboard-impl-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 // CLASS HEADER
19 #include <dali/internal/input/common/virtual-keyboard-impl.h>
20
21 // EXTERNAL INCLUDES
22 #include <dali/integration-api/debug.h>
23
24 namespace Dali
25 {
26
27 namespace Internal
28 {
29
30 namespace Adaptor
31 {
32
33 namespace VirtualKeyboard
34 {
35
36 namespace
37 {
38 #if defined(DEBUG_ENABLED)
39 Debug::Filter* gLogFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_INPUT_METHOD_CONTEXT");
40 #endif
41 }
42
43 void Show()
44 {
45   DALI_LOG_INFO( gLogFilter, Debug::General, "VirtualKeyboard::Show\n" );
46 }
47
48 void Hide()
49 {
50   DALI_LOG_INFO( gLogFilter, Debug::General, "VirtualKeyboard::Hide\n" );
51 }
52
53 bool IsVisible()
54 {
55   DALI_LOG_INFO( gLogFilter, Debug::General, "VirtualKeyboard::IsVisible\n" );
56
57   return false;
58 }
59
60 void ApplySettings( const Property::Map& settingsMap )
61 {
62   DALI_LOG_INFO( gLogFilter, Debug::General, "VirtualKeyboard::ApplySettings\n" );
63 }
64
65 void SetReturnKeyType( const InputMethod::ButtonAction::Type type )
66 {
67   DALI_LOG_INFO( gLogFilter, Debug::General, "VirtualKeyboard::SetReturnKeyType\n" );
68 }
69
70 Dali::InputMethod::ButtonAction::Type GetReturnKeyType()
71 {
72   DALI_LOG_INFO( gLogFilter, Debug::General, "VirtualKeyboard::GetReturnKeyType\n" );
73
74   return Dali::InputMethod::ButtonAction::DEFAULT;
75 }
76
77 void EnablePrediction( const bool enable )
78 {
79   DALI_LOG_INFO( gLogFilter, Debug::General, "VirtualKeyboard::EnablePrediction\n" );
80 }
81
82 bool IsPredictionEnabled()
83 {
84   DALI_LOG_INFO( gLogFilter, Debug::General, "VirtualKeyboard::IsPredictionEnabled\n" );
85
86   return false;
87 }
88
89 Rect<int> GetSizeAndPosition()
90 {
91   DALI_LOG_INFO( gLogFilter, Debug::General, "VirtualKeyboard::GetSizeAndPosition\n" );
92
93   Rect<int> ret;
94   return ret;
95 }
96
97 void RotateTo(int angle)
98 {
99   DALI_LOG_INFO( gLogFilter, Debug::General, "VirtualKeyboard::RotateTo\n" );
100 }
101
102 Dali::VirtualKeyboard::TextDirection GetTextDirection()
103 {
104   DALI_LOG_INFO( gLogFilter, Debug::General, "VirtualKeyboard::GetTextDirection\n" );
105
106   return Dali::VirtualKeyboard::LEFT_TO_RIGHT;
107 }
108
109 } // namespace VirtualKeyboard
110
111 } // namespace Adaptor
112
113 } // namespace Internal
114
115 } // namespace Dali