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");
}
}
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");
}
}
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