ewk_error_cancellation_get API added
authorLukasz Krok <l.krok@samsung.com>
Tue, 10 Feb 2015 11:59:41 +0000 (12:59 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
The API job is to check if an error was caused by a cancellation.
In current chromium implementation such situtation is not possible,
after I8f4e828bfcc63377678e475f44131dbc749b9c7f change.
Thus, the API will always return EINA_FALSE.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=11077
Reviewed by: Jaesik Chang, Piotr Tworek

Change-Id: Iedcf80af17747ac3330be5ea3f6f4c1e457afeca
Signed-off-by: Lukasz Krok <l.krok@samsung.com>
tizen_src/ewk/efl_integration/public/ewk_error.cc
tizen_src/ewk/efl_integration/public/ewk_error.h

index f03109e..1c9352e 100644 (file)
@@ -49,3 +49,8 @@ const char* ewk_error_domain_get(const Ewk_Error* error)
   LOG_EWK_API_MOCKUP();
   return NULL;
 }
+
+Eina_Bool ewk_error_cancellation_get(const Ewk_Error* error)
+{
+    return EINA_FALSE;
+}
\ No newline at end of file
index 39e5612..f24d8c8 100644 (file)
@@ -266,6 +266,17 @@ EAPI const char *ewk_error_description_get(const Ewk_Error *error);
  */
 EAPI const char* ewk_error_domain_get(const Ewk_Error* error);
 
+/**
+ * Query if error is caused by a cancellation.
+ *
+ * @param error error object to query.
+ *
+ * @return @c EINA_FALSE as in current implementation error cannot be
+ *         caused by a cancellation. This API is for compatibility
+ *         reasons.
+ */
+EAPI Eina_Bool ewk_error_cancellation_get(const Ewk_Error* error);
+
 #ifdef __cplusplus
 }
 #endif