From 1668d5c3b5a00df8fdb57012a0769f1e20288393 Mon Sep 17 00:00:00 2001 From: Daekwang Ryu Date: Mon, 13 Mar 2023 11:09:27 +0900 Subject: [PATCH] Fix naming typo of code Change-Id: Idc914d5726e99528808f2bc7f02cd88c3c674d9c --- libaurum/inc/Impl/Accessibility/AtspiAccessibleWatcher.h | 4 ++-- libaurum/inc/TizenWindow.h | 2 +- libaurum/inc/UiObject.h | 4 ++-- libaurum/src/A11yEvent.cc | 2 +- libaurum/src/TizenWindow.cc | 2 +- org.tizen.aurum-bootstrap/inc/Commands/LongClickCommand.h | 2 +- org.tizen.aurum-bootstrap/src/Commands/LongClickCommand.cc | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libaurum/inc/Impl/Accessibility/AtspiAccessibleWatcher.h b/libaurum/inc/Impl/Accessibility/AtspiAccessibleWatcher.h index fb9968a..2136587 100644 --- a/libaurum/inc/Impl/Accessibility/AtspiAccessibleWatcher.h +++ b/libaurum/inc/Impl/Accessibility/AtspiAccessibleWatcher.h @@ -44,8 +44,8 @@ namespace AurumInternal { * @since_tizen 6.5 */ enum class WindowActivateInfoType { - DEFAULT_LABEL_ENALBED = 0x00, - DEFAULT_LABEL_ENALBED_WITHOUT_WINDOW = 0x01, + DEFAULT_LABEL_ENABLED = 0x00, + DEFAULT_LABEL_ENABLED_WITHOUT_WINDOW = 0x01, DEFAULT_LABEL_DISABLED = 0x02, KEYBOARD = 0x04, }; diff --git a/libaurum/inc/TizenWindow.h b/libaurum/inc/TizenWindow.h index 4c86227..7c69566 100644 --- a/libaurum/inc/TizenWindow.h +++ b/libaurum/inc/TizenWindow.h @@ -30,7 +30,7 @@ public: int getPid(); Rect getWindowGeometry(); bool isTransformed(); - bool isAlpah(); + bool isAlpha(); int getOpaque(); int getVisibility(); bool isFocused(); diff --git a/libaurum/inc/UiObject.h b/libaurum/inc/UiObject.h index 35fabea..0c963d4 100644 --- a/libaurum/inc/UiObject.h +++ b/libaurum/inc/UiObject.h @@ -537,7 +537,7 @@ public: * * @since_tizen 6.5 */ - void longClick(const unsigned int durationMs = LOGNCLICK_INTERVAL) const; + void longClick(const unsigned int durationMs = LONGCLICK_INTERVAL) const; /** * TODO @@ -666,7 +666,7 @@ private: std::shared_ptr mSelector; std::shared_ptr mNode; const Waiter *mWaiter; - static const unsigned int LOGNCLICK_INTERVAL = 500; + static const unsigned int LONGCLICK_INTERVAL = 500; }; } diff --git a/libaurum/src/A11yEvent.cc b/libaurum/src/A11yEvent.cc index 6505dc5..f594804 100644 --- a/libaurum/src/A11yEvent.cc +++ b/libaurum/src/A11yEvent.cc @@ -43,7 +43,7 @@ A11yEventInfo::A11yEventInfo(std::string event, std::string name, std::string pk static std::unordered_map const table = { {"window:create", A11yEvent::EVENT_WINDOW_CREATE}, {"window:destroy", A11yEvent::EVENT_WINDOW_DESTROY}, {"window:minimize", A11yEvent::EVENT_WINDOW_MINIMIZE}, - {"window:maxmize", A11yEvent::EVENT_WINDOW_MAXIMIZE}, + {"window:maximize", A11yEvent::EVENT_WINDOW_MAXIMIZE}, {"window:restore", A11yEvent::EVENT_WINDOW_RESTORE}, {"window:activate", A11yEvent::EVENT_WINDOW_ACTIVATE}, {"window:deactivate", A11yEvent::EVENT_WINDOW_DEACTIVATE}, diff --git a/libaurum/src/TizenWindow.cc b/libaurum/src/TizenWindow.cc index ae19068..12f226e 100644 --- a/libaurum/src/TizenWindow.cc +++ b/libaurum/src/TizenWindow.cc @@ -46,7 +46,7 @@ bool TizenWindow::isTransformed() return mIsTransformed; } -bool TizenWindow::isAlpah() +bool TizenWindow::isAlpha() { return mIsAlpha; } diff --git a/org.tizen.aurum-bootstrap/inc/Commands/LongClickCommand.h b/org.tizen.aurum-bootstrap/inc/Commands/LongClickCommand.h index 2e1ccbf..02ed889 100644 --- a/org.tizen.aurum-bootstrap/inc/Commands/LongClickCommand.h +++ b/org.tizen.aurum-bootstrap/inc/Commands/LongClickCommand.h @@ -32,5 +32,5 @@ public: ::aurum::RspClick *response); ::grpc::Status execute() override; private: - const static unsigned int LOGNCLICK_INTERVAL = 500; + const static unsigned int LONGCLICK_INTERVAL = 500; }; diff --git a/org.tizen.aurum-bootstrap/src/Commands/LongClickCommand.cc b/org.tizen.aurum-bootstrap/src/Commands/LongClickCommand.cc index 8830c43..645d860 100644 --- a/org.tizen.aurum-bootstrap/src/Commands/LongClickCommand.cc +++ b/org.tizen.aurum-bootstrap/src/Commands/LongClickCommand.cc @@ -36,14 +36,14 @@ LongClickCommand::LongClickCommand(const ::aurum::ReqClick *request, if (type == ::aurum::ReqClick_RequestType_ELEMENTID) { std::shared_ptr obj = mObjMap->getElement(mRequest->elementid()); if (obj) { - obj->longClick(LOGNCLICK_INTERVAL); + obj->longClick(LONGCLICK_INTERVAL); mResponse->set_status(::aurum::RspStatus::OK); } else mResponse->set_status(::aurum::RspStatus::ERROR); } else if (type == ::aurum::ReqClick_RequestType_COORD) { std::shared_ptr obj = UiDevice::getInstance(); const ::aurum::Point& point = mRequest->coordination(); - obj->click(point.x(), point.y(), LOGNCLICK_INTERVAL); + obj->click(point.x(), point.y(), LONGCLICK_INTERVAL); mResponse->set_status(::aurum::RspStatus::OK); } else if (type == ::aurum::ReqClick_RequestType_ATSPI) { mResponse->set_status(::aurum::RspStatus::ERROR); -- 2.34.1