1 /*
2  * Copyright (c) 2023 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 "adapter/preview/entrance/msdp/interaction_impl.h"
17 #include "core/common/interaction/interaction_data.h"
18 
19 namespace OHOS::Ace {
GetInstance()20 InteractionInterface* InteractionInterface::GetInstance()
21 {
22     static InteractionImpl instance;
23     return &instance;
24 }
25 
UpdateShadowPic(const OHOS::Ace::ShadowInfoCore & shadowInfo)26 int32_t InteractionImpl::UpdateShadowPic(const OHOS::Ace::ShadowInfoCore& shadowInfo)
27 {
28     return -1;
29 }
30 
SetDragWindowVisible(bool visible)31 int32_t InteractionImpl::SetDragWindowVisible(bool visible)
32 {
33     return -1;
34 }
35 
SetMouseDragMonitorState(bool state)36 int32_t InteractionImpl::SetMouseDragMonitorState(bool state)
37 {
38     return -1;
39 }
40 
StartDrag(const DragDataCore & dragData,std::function<void (const OHOS::Ace::DragNotifyMsg &)> callback)41 int32_t InteractionImpl::StartDrag(const DragDataCore& dragData,
42     std::function<void(const OHOS::Ace::DragNotifyMsg&)> callback)
43 {
44     return -1;
45 }
46 
UpdateDragStyle(OHOS::Ace::DragCursorStyleCore style,const int32_t eventId)47 int32_t InteractionImpl::UpdateDragStyle(OHOS::Ace::DragCursorStyleCore style, const int32_t eventId)
48 {
49     return -1;
50 }
51 
UpdatePreviewStyle(const OHOS::Ace::PreviewStyle & previewStyle)52 int32_t InteractionImpl::UpdatePreviewStyle(const OHOS::Ace::PreviewStyle& previewStyle)
53 {
54     return -1;
55 }
56 
UpdatePreviewStyleWithAnimation(const OHOS::Ace::PreviewStyle & previewStyle,const OHOS::Ace::PreviewAnimation & animation)57 int32_t InteractionImpl::UpdatePreviewStyleWithAnimation(const OHOS::Ace::PreviewStyle& previewStyle,
58     const OHOS::Ace::PreviewAnimation& animation)
59 {
60     return -1;
61 }
62 
StopDrag(DragDropRet result)63 int32_t InteractionImpl::StopDrag(DragDropRet result)
64 {
65     return -1;
66 }
67 
GetUdKey(std::string & udKey)68 int32_t InteractionImpl::GetUdKey(std::string& udKey)
69 {
70     return -1;
71 }
72 
GetShadowOffset(ShadowOffsetData & shadowOffsetData)73 int32_t InteractionImpl::GetShadowOffset(ShadowOffsetData& shadowOffsetData)
74 {
75     return -1;
76 }
77 
GetDragSummary(std::map<std::string,int64_t> & summary)78 int32_t InteractionImpl::GetDragSummary(std::map<std::string, int64_t>& summary)
79 {
80     return -1;
81 }
82 
GetDragExtraInfo(std::string & extraInfo)83 int32_t InteractionImpl::GetDragExtraInfo(std::string& extraInfo)
84 {
85     return -1;
86 }
87 
EnterTextEditorArea(bool enable)88 int32_t InteractionImpl::EnterTextEditorArea(bool enable)
89 {
90     return -1;
91 }
92 
GetDragState(DragState & dragState) const93 int32_t InteractionImpl::GetDragState(DragState& dragState) const
94 {
95     return -1;
96 }
97 
AddPrivilege()98 int32_t InteractionImpl::AddPrivilege()
99 {
100     return -1;
101 }
102 
RegisterCoordinationListener(std::function<void ()> dragOutCallback)103 int32_t InteractionImpl::RegisterCoordinationListener(std::function<void()> dragOutCallback)
104 {
105     return -1;
106 }
107 
UnRegisterCoordinationListener()108 int32_t InteractionImpl::UnRegisterCoordinationListener()
109 {
110     return -1;
111 }
112 
113 } // namespace OHOS::Ace