Implement "uri,changed".
authorPiotr Sieduszewski <p.sieduszews@samsung.com>
Fri, 20 Jun 2014 20:22:40 +0000 (13:22 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Issue: CBWEBVIEW-234
Change-Id: I2a20692c7050aa7ce2c58f80a1290c3cb9a94008

tizen_src/impl/eweb_view_callbacks.h
tizen_src/impl/web_contents_delegate_efl.cc

index 978d32bfa9ce331744d2c0e38f1907eac12f4ea2..136547f87ae5729f54292de64432065c3bbf8f51 100644 (file)
@@ -121,7 +121,8 @@ enum CallbackType {
   ConsoleMessage,
   WrtPluginsMessage,
   IconReceived,
-  FormSubmit
+  FormSubmit,
+  URIChanged
 };
 
 template <CallbackType>
@@ -222,6 +223,7 @@ DECLARE_EWK_VIEW_CALLBACK(LoadStarted, "load,started", void);
 DECLARE_EWK_VIEW_CALLBACK(LoadError, "load,error", _Ewk_Error*);
 DECLARE_EWK_VIEW_CALLBACK(TitleChange, "title,changed", const char*);
 DECLARE_EWK_VIEW_CALLBACK(URLChanged, "url,changed", const char*);
+DECLARE_EWK_VIEW_CALLBACK(URIChanged, "uri,changed", const char*);
 DECLARE_EWK_VIEW_CALLBACK(LoadProgress, "load,progress", double*);
 DECLARE_EWK_VIEW_CALLBACK(LoadProgressStarted, "load,progress,started", void);
 DECLARE_EWK_VIEW_CALLBACK(LoadProgressFinished, "load,progress,finished", void);
index 2c6746b9827f6fa7437a4a244d6deae96d1742ca..b0d6a80f9223aaceb1d1746f2776b62626330b89 100755 (executable)
@@ -89,6 +89,7 @@ void WebContentsDelegateEfl::NavigationStateChanged(const WebContents* source, u
   if (changed_flags & content::INVALIDATE_TYPE_URL) {
     const char* url = source->GetVisibleURL().spec().c_str();
     web_view_->SmartCallback<EWebViewCallbacks::URLChanged>().call(url);
+    web_view_->SmartCallback<EWebViewCallbacks::URIChanged>().call(url);
   }
 }