return static_cast<const Ewk_Security_Origin*>(ewk_notification->GetSecurityOrigin());
}
-Eina_Bool ewk_notification_showed(uint64_t notification_id)
+Eina_Bool ewk_notification_showed(Ewk_Context*, uint64_t notification_id)
{
ContentBrowserClientEfl* cbce = GetContentBrowserClient();
EINA_SAFETY_ON_NULL_RETURN_VAL(cbce, EINA_FALSE);
#include <Eina.h>
#include <Evas.h>
+#include "ewk_context.h"
#include "ewk_export.h"
#include "ewk_security_origin.h"
/**
* Notify that notification is showed.
*
+ * @param context context - not used
* @param notification_id identifier of notification
+ *
+ * @return true is the notification_id was not added earlier, false otherwise
*/
-EAPI Eina_Bool ewk_notification_showed(uint64_t notification_id);
+EAPI Eina_Bool ewk_notification_showed(Ewk_Context* context, uint64_t notification_id);
/**
* Notify that notification was closed.
ASSERT_TRUE(ewk_view_url_set(GetEwkWebView(), notification_sample_1.c_str()));
ASSERT_EQ(Success, EventLoopStart());
ASSERT_TRUE(notification_id);
- ASSERT_TRUE(ewk_notification_showed(notification_id));
+ ASSERT_TRUE(ewk_notification_showed(nullptr, notification_id));
ASSERT_EQ(Success, EventLoopStart());
ASSERT_STREQ("notification.show", console_message.c_str());
ewk_view_script_execute(GetEwkWebView(), "new Notification('Title', {tag: 'replace_tag'});", nullptr, nullptr);
ASSERT_TRUE(ewk_view_url_set(GetEwkWebView(), notification_sample_1.c_str()));
ASSERT_EQ(Success, EventLoopStart());
ASSERT_TRUE(notification_id);
- ASSERT_TRUE(ewk_notification_showed(notification_id));
+ ASSERT_TRUE(ewk_notification_showed(nullptr, notification_id));
ASSERT_EQ(Success, EventLoopStart());
ASSERT_STREQ("notification.show", console_message.c_str());
ASSERT_TRUE(ewk_notification_clicked(notification_id));
ASSERT_TRUE(ewk_view_url_set(GetEwkWebView(), notification_sample_1.c_str()));
ASSERT_EQ(Success, EventLoopStart());
ASSERT_TRUE(notification_id);
- ASSERT_TRUE(ewk_notification_showed(notification_id));
+ ASSERT_TRUE(ewk_notification_showed(nullptr, notification_id));
ASSERT_EQ(Success, EventLoopStart());
ASSERT_STREQ("notification.show", console_message.c_str());
ASSERT_TRUE(ewk_notification_closed(notification_id, EINA_TRUE));
ASSERT_TRUE(ewk_view_url_set(GetEwkWebView(), notification_sample_1.c_str()));
ASSERT_EQ(Success, EventLoopStart());
ASSERT_TRUE(notification_id);
- ASSERT_TRUE(ewk_notification_showed(notification_id));
+ ASSERT_TRUE(ewk_notification_showed(nullptr, notification_id));
ASSERT_EQ(Success, EventLoopStart());
ASSERT_STREQ("notification.show", console_message.c_str());
ASSERT_TRUE(ewk_notification_closed(notification_id, EINA_FALSE));
ASSERT_TRUE(ewk_view_url_set(GetEwkWebView(), notification_sample_1.c_str()));
ASSERT_EQ(Success, EventLoopStart());
ASSERT_TRUE(notification_id);
- ASSERT_TRUE(ewk_notification_showed(notification_id));
+ ASSERT_TRUE(ewk_notification_showed(nullptr, notification_id));
ASSERT_EQ(Success, EventLoopStart());
ASSERT_STREQ("notification.show", console_message.c_str());
}
*/
TEST_F(utc_blink_ewk_notification_showed, NEG_TEST)
{
- ASSERT_FALSE(ewk_notification_showed(0));
+ ASSERT_FALSE(ewk_notification_showed(nullptr, 0));
}