Updated all code to new format
[platform/core/uifw/dali-adaptor.git] / dali / internal / input / generic / virtual-keyboard-impl-generic.cpp
1 /*
2  * Copyright (c) 2021 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 namespace Internal
27 {
28 namespace Adaptor
29 {
30 namespace VirtualKeyboard
31 {
32 namespace
33 {
34 #if defined(DEBUG_ENABLED)
35 Debug::Filter* gLogFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_INPUT_METHOD_CONTEXT");
36 #endif
37 } // namespace
38
39 void Show()
40 {
41   DALI_LOG_INFO(gLogFilter, Debug::General, "VirtualKeyboard::Show\n");
42 }
43
44 void Hide()
45 {
46   DALI_LOG_INFO(gLogFilter, Debug::General, "VirtualKeyboard::Hide\n");
47 }
48
49 bool IsVisible()
50 {
51   DALI_LOG_INFO(gLogFilter, Debug::General, "VirtualKeyboard::IsVisible\n");
52
53   return false;
54 }
55
56 void ApplySettings(const Property::Map& settingsMap)
57 {
58   DALI_LOG_INFO(gLogFilter, Debug::General, "VirtualKeyboard::ApplySettings\n");
59 }
60
61 void SetReturnKeyType(const InputMethod::ButtonAction::Type type)
62 {
63   DALI_LOG_INFO(gLogFilter, Debug::General, "VirtualKeyboard::SetReturnKeyType\n");
64 }
65
66 Dali::InputMethod::ButtonAction::Type GetReturnKeyType()
67 {
68   DALI_LOG_INFO(gLogFilter, Debug::General, "VirtualKeyboard::GetReturnKeyType\n");
69
70   return Dali::InputMethod::ButtonAction::DEFAULT;
71 }
72
73 void EnablePrediction(const bool enable)
74 {
75   DALI_LOG_INFO(gLogFilter, Debug::General, "VirtualKeyboard::EnablePrediction\n");
76 }
77
78 bool IsPredictionEnabled()
79 {
80   DALI_LOG_INFO(gLogFilter, Debug::General, "VirtualKeyboard::IsPredictionEnabled\n");
81
82   return false;
83 }
84
85 Rect<int> GetSizeAndPosition()
86 {
87   DALI_LOG_INFO(gLogFilter, Debug::General, "VirtualKeyboard::GetSizeAndPosition\n");
88
89   Rect<int> ret;
90   return ret;
91 }
92
93 void RotateTo(int angle)
94 {
95   DALI_LOG_INFO(gLogFilter, Debug::General, "VirtualKeyboard::RotateTo\n");
96 }
97
98 Dali::VirtualKeyboard::TextDirection GetTextDirection()
99 {
100   DALI_LOG_INFO(gLogFilter, Debug::General, "VirtualKeyboard::GetTextDirection\n");
101
102   return Dali::VirtualKeyboard::LEFT_TO_RIGHT;
103 }
104
105 } // namespace VirtualKeyboard
106
107 } // namespace Adaptor
108
109 } // namespace Internal
110
111 } // namespace Dali