Update change log and spec for wrt-plugins-tizen_0.4.51
[framework/web/wrt-plugins-tizen.git] / src / WebSetting / plugin_initializer.cpp
index db1fca2..5c24308 100755 (executable)
@@ -29,16 +29,21 @@ using namespace WrtDeviceApis;
 using namespace WrtDeviceApis::Commons;
 using namespace DeviceAPI::Common;
 
-namespace DeviceAPI {
-namespace WebSetting {
+namespace DeviceAPI
+{
+namespace WebSetting
+{
 
 
 void on_widget_start_callback(int widgetId)
 {
     SLoggerD("[Tizen\\WebSetting] on_widget_start_callback (%d)", widgetId);
-    try {
+    try
+    {
         WrtAccessSingleton::Instance().initialize(widgetId);
-    } catch (...) {
+    }
+    catch (...)
+    {
         SLoggerE("WrtAccess initialization failed");
     }
 }
@@ -46,9 +51,12 @@ void on_widget_start_callback(int widgetId)
 void on_widget_stop_callback(int widgetId)
 {
     SLoggerD("[Tizen\\WebSetting] on_widget_stop_callback (%d)", widgetId);
-    try {
+    try
+    {
         WrtAccessSingleton::Instance().deinitialize(widgetId);
-    } catch (...) {
+    }
+    catch (...)
+    {
         SLoggerE("WrtAccess deinitialization failed");
     }
 }
@@ -72,9 +80,9 @@ PLUGIN_ON_FRAME_UNLOAD(on_frame_unload_callback)
 
 PLUGIN_CLASS_MAP_BEGIN
 PLUGIN_CLASS_MAP_ADD_CLASS(WRT_JS_EXTENSION_OBJECT_TIZEN,
-        "websetting",
-        (js_class_template_getter)JSWebSettingManager::getClassRef,
-        NULL)
+                           "websetting",
+                           (js_class_template_getter)JSWebSettingManager::getClassRef,
+                           NULL)
 PLUGIN_CLASS_MAP_END
 
 } // WebSetting