From 2516e54d76e2fcd840aa2780e421c08155263b56 Mon Sep 17 00:00:00 2001 From: WoochanLee Date: Wed, 21 Sep 2022 14:14:55 +0900 Subject: [PATCH] aurum.proto: Changes case style to camel Change-Id: If5755aced7b1df65f072c9db628f201489dd73dc --- org.tizen.aurum-bootstrap/src/Commands/DumpObjectTreeCommand.cc | 6 +++--- org.tizen.aurum-bootstrap/src/Commands/FindElementCommand.cc | 8 ++++---- org.tizen.aurum-bootstrap/src/Commands/FindElementsCommand.cc | 8 ++++---- protocol/aurum.proto | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/org.tizen.aurum-bootstrap/src/Commands/DumpObjectTreeCommand.cc b/org.tizen.aurum-bootstrap/src/Commands/DumpObjectTreeCommand.cc index 4865ada..a0fb9df 100644 --- a/org.tizen.aurum-bootstrap/src/Commands/DumpObjectTreeCommand.cc +++ b/org.tizen.aurum-bootstrap/src/Commands/DumpObjectTreeCommand.cc @@ -48,15 +48,15 @@ void DumpObjectTreeCommand::traverse(::aurum::Element *root, std::shared_ptrset_width(size.width()); rect->set_height(size.height()); - ::aurum::Rect *windowRect = root->mutable_window_relative_geometry(); + ::aurum::Rect *windowRect = root->mutable_windowrelativegeometry(); const Rect &windowSize = obj->getWindowBoundingBox(); windowRect->set_x(windowSize.mTopLeft.x); windowRect->set_y(windowSize.mTopLeft.y); windowRect->set_width(windowSize.width()); windowRect->set_height(windowSize.height()); - root->set_widget_type(obj->getType()); - root->set_widget_style(obj->getElementStyle()); + root->set_widgettype(obj->getType()); + root->set_widgetstyle(obj->getElementStyle()); root->set_text(obj->getText()); root->set_xpath(obj->getXPath()); diff --git a/org.tizen.aurum-bootstrap/src/Commands/FindElementCommand.cc b/org.tizen.aurum-bootstrap/src/Commands/FindElementCommand.cc index ce89249..c2664ad 100644 --- a/org.tizen.aurum-bootstrap/src/Commands/FindElementCommand.cc +++ b/org.tizen.aurum-bootstrap/src/Commands/FindElementCommand.cc @@ -101,7 +101,7 @@ std::shared_ptr FindElementCommand::getSelector(void) rect->set_width(size.width()); rect->set_height(size.height()); - elm->set_widget_type(obj->getType()); + elm->set_widgettype(obj->getType()); elm->set_text(obj->getOcrText()); @@ -147,15 +147,15 @@ std::shared_ptr FindElementCommand::getSelector(void) rect->set_width(size.width()); rect->set_height(size.height()); - ::aurum::Rect *windowRect = elm->mutable_window_relative_geometry(); + ::aurum::Rect *windowRect = elm->mutable_windowrelativegeometry(); const Rect &windowRelativeSize = obj->getWindowBoundingBox(); windowRect->set_x(windowRelativeSize.mTopLeft.x); windowRect->set_y(windowRelativeSize.mTopLeft.y); windowRect->set_width(windowRelativeSize.width()); windowRect->set_height(windowRelativeSize.height()); - elm->set_widget_type(obj->getType()); - elm->set_widget_style(obj->getElementStyle()); + elm->set_widgettype(obj->getType()); + elm->set_widgetstyle(obj->getElementStyle()); elm->set_text(obj->getText()); elm->set_xpath(obj->getXPath()); diff --git a/org.tizen.aurum-bootstrap/src/Commands/FindElementsCommand.cc b/org.tizen.aurum-bootstrap/src/Commands/FindElementsCommand.cc index 937e31f..3a0e6b7 100644 --- a/org.tizen.aurum-bootstrap/src/Commands/FindElementsCommand.cc +++ b/org.tizen.aurum-bootstrap/src/Commands/FindElementsCommand.cc @@ -105,7 +105,7 @@ std::vector> FindElementsCommand::getSelectors(void) rect->set_width(size.width()); rect->set_height(size.height()); - elm->set_widget_type(obj->getType()); + elm->set_widgettype(obj->getType()); elm->set_text(obj->getOcrText()); elm->set_toolkit("External"); @@ -159,15 +159,15 @@ std::vector> FindElementsCommand::getSelectors(void) rect->set_width(size.width()); rect->set_height(size.height()); - ::aurum::Rect *windowRect = elm->mutable_window_relative_geometry(); + ::aurum::Rect *windowRect = elm->mutable_windowrelativegeometry(); const Rect &windowRelativeSize = obj->getWindowBoundingBox(); windowRect->set_x(windowRelativeSize.mTopLeft.x); windowRect->set_y(windowRelativeSize.mTopLeft.y); windowRect->set_width(windowRelativeSize.width()); windowRect->set_height(windowRelativeSize.height()); - elm->set_widget_type(obj->getType()); - elm->set_widget_style(obj->getElementStyle()); + elm->set_widgettype(obj->getType()); + elm->set_widgetstyle(obj->getElementStyle()); elm->set_text(obj->getText()); elm->set_xpath(obj->getXPath()); diff --git a/protocol/aurum.proto b/protocol/aurum.proto index e5e3085..9b00b62 100644 --- a/protocol/aurum.proto +++ b/protocol/aurum.proto @@ -58,10 +58,10 @@ message Element { repeated Element child = 2; Rect geometry = 3; - Rect window_relative_geometry = 4; + Rect windowRelativeGeometry = 4; - string widget_type = 5; - string widget_style = 6; + string widgetType = 5; + string widgetStyle = 6; string text = 7; string xpath = 8; -- 2.7.4