Revert "temporary fix - add Ewk_Context to ewk_notification_showed to make WRT compile"
authoryh106.jung <yh106.jung@samsung.com>
Thu, 28 May 2015 12:57:54 +0000 (21:57 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
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>
tizen_src/ewk/efl_integration/public/ewk_notification.cc
tizen_src/ewk/efl_integration/public/ewk_notification.h
tizen_src/ewk/unittest/utc_blink_ewk_notification_callbacks_set_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_notification_clicked_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_notification_closed_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_notification_showed_func.cpp

index 3818c32..41f7e30 100644 (file)
@@ -169,7 +169,7 @@ const Ewk_Security_Origin* ewk_notification_security_origin_get(const Ewk_Notifi
   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();
index 165652c..b4a026d 100644 (file)
@@ -7,7 +7,6 @@
 
 #include <Eina.h>
 #include <Evas.h>
-#include "ewk_context.h"
 #include "ewk_export.h"
 #include "ewk_security_origin.h"
 
@@ -192,12 +191,9 @@ EAPI const Ewk_Security_Origin* ewk_notification_security_origin_get(const Ewk_N
 /**
  * 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.
index 48ed4df..3536b19 100755 (executable)
@@ -54,7 +54,7 @@ TEST_F(utc_blink_ewk_notification_callbacks_set, POS_TEST)
   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);
index 4e25b6d..ff209b7 100644 (file)
@@ -42,7 +42,7 @@ TEST_F(utc_blink_ewk_notification_clicked, POS_TEST)
   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));
index fc6334e..d8a3985 100755 (executable)
@@ -41,7 +41,7 @@ TEST_F(utc_blink_ewk_notification_closed, by_user_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_TRUE));
@@ -57,7 +57,7 @@ TEST_F(utc_blink_ewk_notification_closed, by_user_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());
   ASSERT_TRUE(ewk_notification_closed(notification_id, EINA_FALSE));
index 481aecb..bf5063f 100755 (executable)
@@ -41,7 +41,7 @@ TEST_F(utc_blink_ewk_notification_showed, POS_TEST)
   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());
 }
@@ -51,5 +51,5 @@ TEST_F(utc_blink_ewk_notification_showed, POS_TEST)
 */
 TEST_F(utc_blink_ewk_notification_showed, NEG_TEST)
 {
-  ASSERT_FALSE(ewk_notification_showed(nullptr, 0));
+  ASSERT_FALSE(ewk_notification_showed(0));
 }