This reverts commit
6e6015b9a35c2630454ec69f35d788571b854f1c.
Original commit message:
Context was not used and we removed it, but WRT assumes that
ewk_notification_showed takes context as one of the parameters
and after our Notification API refactoring it doesn't compile.
WRT will update to the new API, but for now we need this temporary
fix for it to work.
Reviewed by: Antonio Gomes, Daniel Waślicki, Hyunhak Kim
Change-Id: Ib3fe9036f8bfe2992d17e219a21213ed33bd6d90
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
return static_cast<const Ewk_Security_Origin*>(ewk_notification->GetSecurityOrigin());
}
-Eina_Bool ewk_notification_showed(Ewk_Context*, uint64_t notification_id)
+Eina_Bool ewk_notification_showed(uint64_t notification_id)
{
#if defined(ENABLE_NOTIFICATIONS)
ContentBrowserClientEfl* cbce = GetContentBrowserClient();
#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(Ewk_Context* context, uint64_t notification_id);
+EAPI Eina_Bool ewk_notification_showed(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(nullptr, notification_id));
+ ASSERT_TRUE(ewk_notification_showed(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(nullptr, notification_id));
+ ASSERT_TRUE(ewk_notification_showed(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(nullptr, notification_id));
+ ASSERT_TRUE(ewk_notification_showed(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(nullptr, notification_id));
+ ASSERT_TRUE(ewk_notification_showed(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(nullptr, notification_id));
+ ASSERT_TRUE(ewk_notification_showed(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(nullptr, 0));
+ ASSERT_FALSE(ewk_notification_showed(0));
}