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
StartDrag(const DragDataCore & dragData,std::function<void (const OHOS::Ace::DragNotifyMsg &)> callback)36 int32_t InteractionImpl::StartDrag(const DragDataCore& dragData,
37 std::function<void(const OHOS::Ace::DragNotifyMsg&)> callback)
38 {
39 return -1;
40 }
41
UpdateDragStyle(OHOS::Ace::DragCursorStyleCore style)42 int32_t InteractionImpl::UpdateDragStyle(OHOS::Ace::DragCursorStyleCore style)
43 {
44 return -1;
45 }
46
UpdatePreviewStyle(const OHOS::Ace::PreviewStyle & previewStyle)47 int32_t InteractionImpl::UpdatePreviewStyle(const OHOS::Ace::PreviewStyle& previewStyle)
48 {
49 return -1;
50 }
51
UpdatePreviewStyleWithAnimation(const OHOS::Ace::PreviewStyle & previewStyle,const OHOS::Ace::PreviewAnimation & animation)52 int32_t InteractionImpl::UpdatePreviewStyleWithAnimation(const OHOS::Ace::PreviewStyle& previewStyle,
53 const OHOS::Ace::PreviewAnimation& animation)
54 {
55 return -1;
56 }
57
StopDrag(DragDropRet result)58 int32_t InteractionImpl::StopDrag(DragDropRet result)
59 {
60 return -1;
61 }
62
GetUdKey(std::string & udKey)63 int32_t InteractionImpl::GetUdKey(std::string& udKey)
64 {
65 return -1;
66 }
67
GetShadowOffset(ShadowOffsetData & shadowOffsetData)68 int32_t InteractionImpl::GetShadowOffset(ShadowOffsetData& shadowOffsetData)
69 {
70 return -1;
71 }
72
GetDragSummary(std::map<std::string,int64_t> & summary)73 int32_t InteractionImpl::GetDragSummary(std::map<std::string, int64_t>& summary)
74 {
75 return -1;
76 }
77
GetDragExtraInfo(std::string & extraInfo)78 int32_t InteractionImpl::GetDragExtraInfo(std::string& extraInfo)
79 {
80 return -1;
81 }
82
EnterTextEditorArea(bool enable)83 int32_t InteractionImpl::EnterTextEditorArea(bool enable)
84 {
85 return -1;
86 }
87
GetDragState(DragState & dragState) const88 int32_t InteractionImpl::GetDragState(DragState& dragState) const
89 {
90 return -1;
91 }
92
AddPrivilege()93 int32_t InteractionImpl::AddPrivilege()
94 {
95 return -1;
96 }
97
RegisterCoordinationListener(std::function<void ()> dragOutCallback)98 int32_t InteractionImpl::RegisterCoordinationListener(std::function<void()> dragOutCallback)
99 {
100 return -1;
101 }
102
UnRegisterCoordinationListener()103 int32_t InteractionImpl::UnRegisterCoordinationListener()
104 {
105 return -1;
106 }
107
108 } // namespace OHOS::Ace