[Release] wrt_0.8.191
[platform/framework/web/wrt.git] / src / api_new / user_delegates.h
index d9ffc3d..e81237a 100644 (file)
@@ -24,6 +24,7 @@
 #include <dpl/fast_delegate.h>
 #include <widget_model.h>
 #include <memory>
+#include <string>
 #include <Evas.h>
 
 namespace WRT {
@@ -33,9 +34,9 @@ typedef DPL::FastDelegate1<Evas_Object*, void> LoadStartCB;
 typedef DPL::FastDelegate1<Evas_Object*, void> LoadFinishCB;
 typedef DPL::FastDelegate0<void> WebCrashCB;
 typedef DPL::FastDelegate2<Evas**, Evas_Object*, void> WindowCreateBeforeCB;
-typedef DPL::FastDelegate2<Evas_Object*, Evas_Object*,
-                           void> WindowCreateAfterCB;
+typedef DPL::FastDelegate2<Evas_Object*, Evas_Object*, void> WindowCreateAfterCB;
 typedef DPL::FastDelegate1<Evas_Object*, void> WindowCloseCB;
+typedef DPL::FastDelegate2<Evas_Object*, std::string&, void> NavigationDecideCB;
 typedef DPL::FastDelegate0<void> WebkitExitCB;
 typedef DPL::FastDelegate1<bool, void> ResumeCB;
 typedef DPL::FastDelegate1<bool, void> SuspendCB;
@@ -53,6 +54,7 @@ struct UserDelegates {
     WindowCreateBeforeCB windowCreateBefore;
     WindowCreateAfterCB windowCreateAfter;
     WindowCloseCB windowClose;
+    NavigationDecideCB navigationDecide;
     WebkitExitCB webkitExit;
     ResumeCB resume;
     SuspendCB suspend;