• 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 "accessibility_zoom_gesture.h"
17 
18 namespace OHOS {
19 namespace Accessibility {
20 /**
21  * Triple: DOWN UP DOWN UP DOWN
22  */
AccessibilityZoomGesture()23 AccessibilityZoomGesture::AccessibilityZoomGesture()
24 {
25     Initialize();
26 }
27 
~AccessibilityZoomGesture()28 AccessibilityZoomGesture::~AccessibilityZoomGesture()
29 {}
30 
Initialize()31 void AccessibilityZoomGesture::Initialize()
32 {
33     distance_ = GetSysDistance();
34     timeout_ = GetSysTimeout();
35 }
36 
GetSysDistance() const37 int32_t AccessibilityZoomGesture::GetSysDistance() const
38 {
39     return 0;
40 }
41 
GetSysTimeout() const42 int64_t AccessibilityZoomGesture::GetSysTimeout() const
43 {
44     return 0;
45 }
46 
ValidDown(MMI::PointerEvent & event)47 bool AccessibilityZoomGesture::ValidDown(MMI::PointerEvent& event)
48 {
49     (void)event;
50     return true;
51 }
52 
Triple(MMI::PointerEvent & event)53 bool AccessibilityZoomGesture::Triple(MMI::PointerEvent& event)
54 {
55     (void)event;
56     return false;
57 }
58 
Up()59 void AccessibilityZoomGesture::Up()
60 {}
61 
Reset(const MMI::PointerEvent & event)62 void AccessibilityZoomGesture::Reset(const MMI::PointerEvent& event)
63 {
64     (void)event;
65 }
66 
Clear()67 void AccessibilityZoomGesture::Clear()
68 {
69     upCount_ = 0;
70     downCount_ = 0;
71 }
72 } // namespace Accessibility
73 } // namespace OHOS