Source code formating unification
[platform/framework/web/wrt-plugins-common.git] / src / Commons / JSObjectDeclaration.cpp
index 46a3da3..2ca8c9e 100644 (file)
@@ -31,24 +31,23 @@ JSObjectDeclaration::JSObjectDeclaration(js_entity_definition_ptr_t classD) :
     m_classTemplate(NULL),
     m_constructorCallback(classD->js_class_constructor_cb)
 {
-    if (NULL != classD->js_class_template_getter_fun)
-    {
+    if (NULL != classD->js_class_template_getter_fun) {
         m_classTemplate = classD->js_class_template_getter_fun();
     }
-    if(classD->class_options){
+    if (classD->class_options) {
         LogDebug("class options is not a null");
         m_options = OptionsPtr(new Options(classD->class_options));
     }
 }
 
 JSObjectDeclaration::~JSObjectDeclaration()
-{
-}
+{}
 
-bool JSObjectDeclaration::checkIframesSupported() const{
+bool JSObjectDeclaration::checkIframesSupported() const
+{
     LogDebug("Check iframe supported");
-    if(!m_options ||
-       m_options->getIframeObject() == Options::IFrameObject::None)
+    if (!m_options ||
+        m_options->getIframeObject() == Options::IFrameObject::None)
     {
         LogDebug("Iframe NOT supported for object: " << getName());
         return false;
@@ -60,12 +59,12 @@ bool JSObjectDeclaration::checkIframesSupported() const{
 }
 
 JSObjectDeclaration::Options::ClassType
-    JSObjectDeclaration::Options::getType() const
+JSObjectDeclaration::Options::getType() const
 {
     LogDebug("Get type field from declaration's option");
     Assert(m_options && "Pointer to options is NULL");
 
-    switch(m_options->type){
+    switch (m_options->type) {
     case JS_CLASS: return ClassType::Class;
     case JS_FUNCTION: return ClassType::Function;
     case JS_INTERFACE: return ClassType::Interface;
@@ -74,12 +73,12 @@ JSObjectDeclaration::Options::ClassType
 }
 
 JSObjectDeclaration::Options::IFrameObject
-    JSObjectDeclaration::Options::getIframeObject() const
+JSObjectDeclaration::Options::getIframeObject() const
 {
     LogDebug("Get Frame Option");
     Assert(m_options && "Options object is NULL");
 
-    switch(m_options->iframe_option){
+    switch (m_options->iframe_option) {
     case NONE: return IFrameObject::None;
     case REFERENCE: return IFrameObject::Reference;
     case CREATE_INSTANCE: return IFrameObject::CreateInstance;
@@ -89,12 +88,12 @@ JSObjectDeclaration::Options::IFrameObject
 }
 
 JSObjectDeclaration::Options::IFrameNotice
-    JSObjectDeclaration::Options::getIframeNotice() const
+JSObjectDeclaration::Options::getIframeNotice() const
 {
     LogDebug("Get Frame Option");
     Assert(m_options && "Pointer to options is null");
 
-    switch(m_options->iframe_notice){
+    switch (m_options->iframe_notice) {
     case NONE_NOTICE: return IFrameNotice::None;
     case ALWAYS_NOTICE: return IFrameNotice::AlwaysNotice;
     default:
@@ -103,16 +102,16 @@ JSObjectDeclaration::Options::IFrameNotice
 }
 
 JSObjectDeclaration::Options::IFrameOverlay
-    JSObjectDeclaration::Options::getIframeOverlay() const
+JSObjectDeclaration::Options::getIframeOverlay() const
 {
     LogDebug("Get Frame Option");
     Assert(m_options && "Pointer to options is null");
 
-    switch(m_options->iframe_overlay){
+    switch (m_options->iframe_overlay) {
     case IGNORED: return IFrameOverlay::Ignored;
     case USE_OVERLAYED: return IFrameOverlay::UseOverlayed;
     case OVERLAYED_BEFORE_ORIGINAL:
-            return IFrameOverlay::OverlayedBeforeOriginal;
+        return IFrameOverlay::OverlayedBeforeOriginal;
     default:
         Assert(0 && "Wrong value of overlay option");
     }
@@ -134,7 +133,7 @@ void JSObjectDeclaration::Options::invokeCallback(JsContext ctx,
 }
 
 JSObjectDeclaration::Options::PrivateData
-    JSObjectDeclaration::Options::getPrivateData() const
+JSObjectDeclaration::Options::getPrivateData() const
 {
     Assert(m_options && m_options->private_data && "empty private data");
     return m_options->private_data;