• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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,const std::shared_ptr<Rosen::RSTransaction> & rSTransaction)31 int32_t InteractionImpl::SetDragWindowVisible(bool visible, const std::shared_ptr<Rosen::RSTransaction>& rSTransaction)
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,std::map<std::string,int64_t> & detailedSummary,std::map<std::string,std::vector<int32_t>> & summaryFormat,int32_t & version,int64_t & totalSize)78 int32_t InteractionImpl::GetDragSummary(std::map<std::string, int64_t>& summary,
79     std::map<std::string, int64_t>& detailedSummary, std::map<std::string, std::vector<int32_t>>& summaryFormat,
80     int32_t& version, int64_t& totalSize)
81 {
82     return -1;
83 }
84 
GetDragExtraInfo(std::string & extraInfo)85 int32_t InteractionImpl::GetDragExtraInfo(std::string& extraInfo)
86 {
87     return -1;
88 }
89 
EnterTextEditorArea(bool enable)90 int32_t InteractionImpl::EnterTextEditorArea(bool enable)
91 {
92     return -1;
93 }
94 
GetDragState(DragState & dragState) const95 int32_t InteractionImpl::GetDragState(DragState& dragState) const
96 {
97     return -1;
98 }
99 
AddPrivilege()100 int32_t InteractionImpl::AddPrivilege()
101 {
102     return -1;
103 }
104 
RegisterCoordinationListener(std::function<void ()> dragOutCallback)105 int32_t InteractionImpl::RegisterCoordinationListener(std::function<void()> dragOutCallback)
106 {
107     return -1;
108 }
109 
UnRegisterCoordinationListener()110 int32_t InteractionImpl::UnRegisterCoordinationListener()
111 {
112     return -1;
113 }
114 
SetDraggableState(bool state)115 int32_t InteractionImpl::SetDraggableState(bool state)
116 {
117     return -1;
118 }
119 
GetAppDragSwitchState(bool & state)120 int32_t InteractionImpl::GetAppDragSwitchState(bool& state)
121 {
122     return -1;
123 }
124 
SetDraggableStateAsync(bool state,int64_t downTime)125 void InteractionImpl::SetDraggableStateAsync(bool state, int64_t downTime) {}
126 
GetDragBundleInfo(DragBundleInfo & dragBundleInfo)127 int32_t  InteractionImpl::GetDragBundleInfo(DragBundleInfo& dragBundleInfo)
128 {
129     return -1;
130 }
131 
EnableInternalDropAnimation(const std::string & animationInfo)132 int32_t InteractionImpl::EnableInternalDropAnimation(const std::string& animationInfo)
133 {
134     return -1;
135 }
136 
IsDragStart() const137 bool InteractionImpl::IsDragStart() const
138 {
139     return false;
140 }
141 } // namespace OHOS::Ace