From bd5a0aae8271f3d95d27070ccc1de4b4ab43f51f Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Tue, 8 Sep 2020 11:31:23 +0900 Subject: [PATCH] DSPointer: add LCOV_EXCL for event functions Change-Id: I62ea6fc6e6ac9cfe7d0369410a85426b4be66864 Signed-off-by: Junseok, Kim --- src/DSSeat/DSPointer.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/DSSeat/DSPointer.cpp b/src/DSSeat/DSPointer.cpp index 02e3b3b..2f7b1e1 100644 --- a/src/DSSeat/DSPointer.cpp +++ b/src/DSSeat/DSPointer.cpp @@ -51,6 +51,7 @@ DSPointer::DSPointer(DSSeat *seat, DSWaylandPointer *pointer) DSPointer::~DSPointer() {} +/*LCOV_EXCL_START*/ void DSPointer::processEvent(DSInputMouseEvent *ev, void *data) { //TODO : get ptrFocus and send event to it via DSWaylandPointer instance @@ -99,7 +100,9 @@ void DSPointer::processEvent(DSInputMouseEvent *ev, void *data) return; } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSPointer::mouseDown(uint32_t button) { if (__ptrFocus && __dswlPointer) @@ -107,7 +110,9 @@ void DSPointer::mouseDown(uint32_t button) __dswlPointer->sendButtonDown(button); } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSPointer::mouseUp(uint32_t button) { if (__ptrFocus && __dswlPointer) @@ -115,7 +120,9 @@ void DSPointer::mouseUp(uint32_t button) __dswlPointer->sendButtonUp(button); } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSPointer::mouseMove(int x, int y) { if (__ptrFocus && __dswlPointer) @@ -123,7 +130,9 @@ void DSPointer::mouseMove(int x, int y) __dswlPointer->sendMotion(x, y); } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSPointer::mouseIn(int x, int y) { if (__dswlPointer) @@ -131,7 +140,9 @@ void DSPointer::mouseIn(int x, int y) __dswlPointer->sendEnter(x, y); } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSPointer::mouseOut() { if (__dswlPointer) @@ -139,7 +150,9 @@ void DSPointer::mouseOut() __dswlPointer->sendLeave(); } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSPointer::setFocus(std::shared_ptr window) { if (!window) @@ -170,7 +183,9 @@ void DSPointer::setFocus(std::shared_ptr window) __dswlPointer->setFocus(waylandSurface); } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSPointer::resetFocus() { if (__ptrFocus) @@ -182,6 +197,7 @@ void DSPointer::resetFocus() if (__dswlPointer) __dswlPointer->resetFocus(); } +/*LCOV_EXCL_STOP*/ std::shared_ptr DSPointer::getFocus() { -- 2.7.4