tizen 2.4 release
[framework/web/wrt-plugins-common.git] / src / plugin-loading / plugin_logic.h
similarity index 88%
rename from src_mobile/plugin-loading/plugin_logic.h
rename to src/plugin-loading/plugin_logic.h
index fb965c5..e447cf9 100644 (file)
@@ -34,7 +34,8 @@
 #include <dpl/wrt-dao-ro/plugin_dao_read_only.h>
 #include <js_overlay_types.h>
 #include <js_types.h>
-#include <Commons/Deprecated.h>
+#include <dpl/availability.h>
+#include <dpl/wrt-dao-ro/wrt_db_types.h>
 
 using namespace WrtPlugins::W3C;
 
@@ -42,8 +43,8 @@ class PluginLogic : DPL::Noncopyable
 {
   public:
     // Widget session
-    void initSession(int widgetHandle);
-    void startSession(int widgetHandle,
+    void initSession(WidgetHandle widgetHandle);
+    void startSession(WidgetHandle widgetHandle,
                       JSGlobalContextRef view,
                       double scaleFactor,
                       const char* encodedBundle,
@@ -57,14 +58,13 @@ class PluginLogic : DPL::Noncopyable
                             JavaScriptObject& parentObject,
                             JSGlobalContextRef context);
 
-    WRT_PLUGINS_DEPRECATED void loadPluginsIntoIframes(
-        JSGlobalContextRef context);
+    DPL_DEPRECATED void loadPluginsIntoIframes(JSGlobalContextRef context);
 
     void loadFrame(JSGlobalContextRef context);
     void unloadFrame(JSGlobalContextRef context);
 
     // reset custom window properties. (Tizen requirements)
-    WRT_PLUGINS_DEPRECATED void setCustomProperties(double scaleFactor,
+    DPL_DEPRECATED void setCustomProperties(double scaleFactor,
                                                     const char* encodedBundle,
                                                     const char* theme);
 
@@ -73,8 +73,7 @@ class PluginLogic : DPL::Noncopyable
                              const char* encodedBundle,
                              const char* theme);
 
-    WRT_PLUGINS_DEPRECATED void dispatchJavaScriptEvent(
-        CustomEventType eventType);
+    DPL_DEPRECATED void dispatchJavaScriptEvent(CustomEventType eventType);
 
     void dispatchJavaScriptEvent(JSGlobalContextRef ctx,
                                  CustomEventType eventType,