1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "core/common/ime/input_method_manager.h"
17 
18 namespace OHOS::Ace {
19 std::unique_ptr<InputMethodManager> InputMethodManager::instance_ = nullptr;
20 
GetInstance()21 InputMethodManager* InputMethodManager::GetInstance()
22 {
23     static std::once_flag onceFlag;
24     std::call_once(onceFlag, []() {
25         instance_.reset(new InputMethodManager());
26     });
27     return instance_.get();
28 }
29 
OnFocusNodeChange(const RefPtr<NG::FrameNode> & curFocusNode)30 void InputMethodManager::OnFocusNodeChange(const RefPtr<NG::FrameNode>& curFocusNode) {}
31 
ProcessKeyboardInWindowScene(const RefPtr<NG::FrameNode> & curFocusNode)32 void InputMethodManager::ProcessKeyboardInWindowScene(const RefPtr<NG::FrameNode>& curFocusNode) {}
33 
ProcessKeyboard(const RefPtr<NG::FrameNode> & curFocusNode)34 void InputMethodManager::ProcessKeyboard(const RefPtr<NG::FrameNode>& curFocusNode) {}
35 
SetWindowFocus(bool windowFocus)36 void InputMethodManager::SetWindowFocus(bool windowFocus) {}
37 
NeedSoftKeyboard() const38 bool InputMethodManager::NeedSoftKeyboard() const
39 {
40     return false;
41 }
42 
CloseKeyboard()43 void InputMethodManager::CloseKeyboard() {}
44 
CloseKeyboardInPipelineDestroy()45 void InputMethodManager::CloseKeyboardInPipelineDestroy() { lastKeep_ = false; }
46 
CloseKeyboard(const RefPtr<NG::FrameNode> & focusNode)47 void InputMethodManager::CloseKeyboard(const RefPtr<NG::FrameNode>& focusNode) {}
48 
HideKeyboardAcrossProcesses()49 void InputMethodManager::HideKeyboardAcrossProcesses() {}
50 
ProcessModalPageScene()51 void InputMethodManager::ProcessModalPageScene() {}
52 } // namespace OHOS::Ace