#include <FBaseRtIEventListener.h>
#include <FBaseString.h>
+namespace Tizen { namespace Graphics
+{
+class Bitmap;
+}} // Tizen::Graphics
+
namespace Tizen { namespace Net { namespace Http
{
class HttpHeader;
* If receiving this callback the once, an application can get favicon by using Tizen::Web::Controls::GetFaviconN().
*
* @since 2.1
+ *
+ * @param[in] favicon The image
* @see Tizen::Web::Controls::GetFaviconN()
*/
- virtual void OnFaviconReceived(void) {}
+ virtual void OnFaviconReceived(const Tizen::Graphics::Bitmap& favicon) {}
protected:
//
// @since 2.0
//
- virtual void ILoadingListener_Reserved2(void) {}
+ virtual void ILoadingListener_Reserved1(void) {}
//
// This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
//
// @since 2.0
//
- virtual void ILoadingListener_Reserved3(void) {}
+ virtual void ILoadingListener_Reserved2(void) {}
//
// This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
//
// @since 2.0
//
- virtual void ILoadingListener_Reserved4(void) {}
+ virtual void ILoadingListener_Reserved3(void) {}
//
// This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
//
// @since 2.0
//
- virtual void ILoadingListener_Reserved5(void) {}
+ virtual void ILoadingListener_Reserved4(void) {}
}; // ILoadingListener
//
// @since 2.0
//
- virtual void IWebUiEventListener_Reserved2(void) {};
+ virtual void IWebUiEventListener_Reserved1(void) {};
//
// This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
//
// @since 2.0
//
- virtual void IWebUiEventListener_Reserved3(void) {};
+ virtual void IWebUiEventListener_Reserved2(void) {};
//
// This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
//
// @since 2.0
//
- virtual void IWebUiEventListener_Reserved4(void) {};
+ virtual void IWebUiEventListener_Reserved3(void) {};
//
// This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.
//
// @since 2.0
//
- virtual void IWebUiEventListener_Reserved5(void) {};
+ virtual void IWebUiEventListener_Reserved4(void) {};
}; // IWebUiEventListener
}}} // Tizen::Web::Controls
//\r
// @since 2.1\r
//\r
- virtual void IWebUiEventListenerF_Reserved2(void) {};\r
+ virtual void IWebUiEventListenerF_Reserved1(void) {};\r
\r
//\r
// This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.\r
//\r
// @since 2.1\r
//\r
- virtual void IWebUiEventListenerF_Reserved3(void) {};\r
+ virtual void IWebUiEventListenerF_Reserved2(void) {};\r
\r
//\r
// This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.\r
//\r
// @since 2.1\r
//\r
- virtual void IWebUiEventListenerF_Reserved4(void) {};\r
+ virtual void IWebUiEventListenerF_Reserved3(void) {};\r
\r
//\r
// This method is for internal use only. Using this method can cause behavioral, security-related, and consistency-related issues in the application.\r
//\r
// @since 2.1\r
//\r
- virtual void IWebUiEventListenerF_Reserved5(void) {};\r
+ virtual void IWebUiEventListenerF_Reserved4(void) {};\r
}; // IWebUiEventListenerF\r
\r
}}} // Tizen::Web::Controls\r
case WEB_EVENT_LOADINGLISTENER_FAVICON_RECEIVED:
{
- pLoadingListner->OnFaviconReceived();
+ std::unique_ptr<Bitmap> pFavicon(GetFaviconN());
+ SysTryReturn(NID_WEB_CTRL, pFavicon.get(), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
+
+ pLoadingListner->OnFaviconReceived(*pFavicon.get());
break;
}