• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 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 "accessible_ability_client_stub_impl.h"
17 #include "accessibility_extension_context.h"
18 #include "display_resize_controller.h"
19 
20 using namespace std;
21 
22 namespace OHOS {
23 namespace Accessibility {
RegisterListenerImpl(const std::shared_ptr<AccessibilityExtension> & listener)24 void AccessibleAbilityClientStubImpl::RegisterListenerImpl(const std::shared_ptr<AccessibilityExtension> &listener)
25 {}
26 
Init(const sptr<IAccessibleAbilityChannel> & channel,const int channelId)27 void AccessibleAbilityClientStubImpl::Init(const sptr<IAccessibleAbilityChannel> &channel, const int channelId)
28 {}
29 
Disconnect(const int channelId)30 void AccessibleAbilityClientStubImpl::Disconnect(const int channelId)
31 {}
32 
InitInner(const sptr<IAccessibleAbilityChannel> & channel,const int channelId)33 void AccessibleAbilityClientStubImpl::InitInner(const sptr<IAccessibleAbilityChannel> &channel, const int channelId)
34 {
35     if (!channel) {
36         channelId_ = INVALID_CHANNEL_ID;
37     } else {
38         channelId_ = channelId;
39     }
40 }
41 
OnAccessibilityEvent(const AccessibilityEventInfo & eventInfo)42 void AccessibleAbilityClientStubImpl::OnAccessibilityEvent(const AccessibilityEventInfo &eventInfo)
43 {}
44 
OnAccessibilityEventInner(const AccessibilityEventInfo & eventInfo)45 void AccessibleAbilityClientStubImpl::OnAccessibilityEventInner(const AccessibilityEventInfo &eventInfo)
46 {
47     if (channelId_ != INVALID_CHANNEL_ID) {
48         if (!listener_) {
49             return;
50         }
51     }
52 }
53 
OnKeyPressEvent(const MMI::KeyEvent & keyEvent,const int sequence)54 void AccessibleAbilityClientStubImpl::OnKeyPressEvent(const MMI::KeyEvent &keyEvent, const int sequence)
55 {}
56 
OnKeyPressEventInner(const MMI::KeyEvent & keyEvent,const int sequence)57 void AccessibleAbilityClientStubImpl::OnKeyPressEventInner(const MMI::KeyEvent &keyEvent, const int sequence)
58 {}
59 
OnDisplayResized(const int displayId,const Rect & rect,const float scale,const float centerX,const float centerY)60 void AccessibleAbilityClientStubImpl::OnDisplayResized(const int displayId, const Rect &rect, const float scale,
61     const float centerX, const float centerY)
62 {}
63 
OnDisplayResizedInner(const int displayId,const Rect & rect,const float scale,const float centerX,const float centerY)64 void AccessibleAbilityClientStubImpl::OnDisplayResizedInner(const int displayId, const Rect &rect,
65     const float scale, const float centerX, const float centerY)
66 {}
67 
OnGestureSimulateResult(const int sequence,const bool completedSuccessfully)68 void AccessibleAbilityClientStubImpl::OnGestureSimulateResult(const int sequence, const bool completedSuccessfully)
69 {}
70 
OnGestureSimulateResultInner(const int sequence,const bool completedSuccessfully)71 void AccessibleAbilityClientStubImpl::OnGestureSimulateResultInner(const int sequence,
72     const bool completedSuccessfully)
73 {}
74 } // namespace Accessibility
75 } // namespace OHOS