Source code formating unification
[platform/framework/web/wrt-plugins-common.git] / src / js-overlay / JSClass / JSTizenServiceEvent.cpp
index ac4c5ad..77be7eb 100644 (file)
@@ -38,31 +38,31 @@ using namespace WrtDeviceApis::TizenServiceEvent::Api;
 #define TIZEN_SERVICE_EVENT_PROPERTY_BUNDLE     "__bundle"
 
 #define CATCH_EXCEPTION_CONVERSION \
-    Catch(Commons::ConversionException) {\
-        LogError("Error on conversion");\
-        return JSDOMExceptionFactory::\
-            UnknownException.make(context, exception);\
+    Catch(Commons::ConversionException) { \
+        LogError("Error on conversion"); \
+        return JSDOMExceptionFactory:: \
+                   UnknownException.make(context, exception); \
     }
 
 #define CATCH_EXCEPTION_NULL_PTR \
-    Catch(Commons::NullPointerException) {\
-        LogError("Error on pointer, null value");\
-        return JSDOMExceptionFactory::\
-            UnknownException.make(context, exception);\
+    Catch(Commons::NullPointerException) { \
+        LogError("Error on pointer, null value"); \
+        return JSDOMExceptionFactory:: \
+                   UnknownException.make(context, exception); \
     }
 
 #define CATCH_EXCEPTION_PLATFORM_ERROR \
-    Catch(Commons::PlatformException){\
-        LogError("PlatformException occured");\
-        return JSDOMExceptionFactory::\
-            UnknownException.make(context, exception);\
+    Catch(Commons::PlatformException){ \
+        LogError("PlatformException occured"); \
+        return JSDOMExceptionFactory:: \
+                   UnknownException.make(context, exception); \
     }
 
 #define CATCH_EXCEPTION_SECURITY \
-    Catch(Commons::SecurityException){\
-        LogError("Security exception occured");\
-        return JSDOMExceptionFactory::\
-            SecurityException.make(context, exception);\
+    Catch(Commons::SecurityException){ \
+        LogError("Security exception occured"); \
+        return JSDOMExceptionFactory:: \
+                   SecurityException.make(context, exception); \
     }
 
 namespace WrtPlugins {
@@ -108,7 +108,8 @@ const JSClassDefinition* JSTizenServiceEvent::getClassInfo()
     return &m_classInfo;
 }
 
-JSClassRef JSTizenServiceEvent::m_jsClassRef = JSClassCreate(JSTizenServiceEvent::getClassInfo());
+JSClassRef JSTizenServiceEvent::m_jsClassRef = JSClassCreate(
+        JSTizenServiceEvent::getClassInfo());
 
 void JSTizenServiceEvent::initialize(JSContextRef context,
                                      JSObjectRef object)
@@ -116,7 +117,8 @@ void JSTizenServiceEvent::initialize(JSContextRef context,
     LogDebug("entered");
 
     JSTizenServiceEventPrivateObject* priv =
-        static_cast<JSTizenServiceEventPrivateObject*>(JSObjectGetPrivate(object));
+        static_cast<JSTizenServiceEventPrivateObject*>(JSObjectGetPrivate(
+                                                           object));
 
     Assert(priv && "Missing private object");
 }
@@ -125,18 +127,18 @@ void JSTizenServiceEvent::finalize(JSObjectRef object)
 {
     LogDebug("entered");
     JSTizenServiceEventPrivateObject* priv =
-        static_cast<JSTizenServiceEventPrivateObject*>(JSObjectGetPrivate(object));
+        static_cast<JSTizenServiceEventPrivateObject*>(JSObjectGetPrivate(
+                                                           object));
 
     delete priv;
     LogDebug("private object is realised");
-
 }
 
 JSValueRef JSTizenServiceEvent::getScale(
-        JSContextRef context,
-        JSObjectRef object,
-        JSStringRef propertyName,
-        JSValueRef* exception)
+    JSContextRef context,
+    JSObjectRef object,
+    JSStringRef propertyName,
+    JSValueRef* exception)
 {
     LogDebug("entered");
 
@@ -148,14 +150,14 @@ JSValueRef JSTizenServiceEvent::getScale(
     CATCH_EXCEPTION_CONVERSION
     CATCH_EXCEPTION_NULL_PTR
     CATCH_EXCEPTION_PLATFORM_ERROR
-    CATCH_EXCEPTION_SECURITY
+        CATCH_EXCEPTION_SECURITY
 }
 
 JSValueRef JSTizenServiceEvent::getBundle(
-        JSContextRef context,
-        JSObjectRef object,
-        JSStringRef propertyName,
-        JSValueRef* exception)
+    JSContextRef context,
+    JSObjectRef object,
+    JSStringRef propertyName,
+    JSValueRef* exception)
 {
     LogDebug("entered");
 
@@ -167,7 +169,7 @@ JSValueRef JSTizenServiceEvent::getBundle(
     CATCH_EXCEPTION_CONVERSION
     CATCH_EXCEPTION_NULL_PTR
     CATCH_EXCEPTION_PLATFORM_ERROR
-    CATCH_EXCEPTION_SECURITY
+        CATCH_EXCEPTION_SECURITY
 }
 
 ITizenServiceEventPtr JSTizenServiceEvent::getPrivateObject(JSObjectRef arg)
@@ -188,6 +190,5 @@ ITizenServiceEventPtr JSTizenServiceEvent::getPrivateObject(JSObjectRef arg)
 #undef CATCH_EXCEPTION_NULL_PTR
 #undef CATCH_EXCEPTION_PLATFORM_ERROR
 #undef CATCH_EXCEPTION_SECURITY
-
 }
 }