Add empty API to RSA for applying Background diskcache to WRT.
authorByeongha Cho <byeongha.cho@samsung.com>
Wed, 19 Jun 2013 09:29:45 +0000 (18:29 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 20 Jun 2013 02:45:43 +0000 (02:45 +0000)
[Title] Add empty API to RSA for applying Background diskcache to WRT.
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A

Change-Id: I17292619991e02bfc4d7edde33f2d0b093e05ee6

Source/WTF/wtf/Platform.h
Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
Source/WebKit2/UIProcess/API/efl/ewk_view.h

index 21c5c4b..6e8fe2f 100755 (executable)
 #define ENABLE_TIZEN_CHECK_DID_PERFORM_FIRST_NAVIGATION 1 /* Sungman Kim(ssungmai.kim@samsung.com) : To skip sendSync message from WebProcess to UIProcess, doesn't use itemAtIndex() on BackForwardController */
 #define ENABLE_TIZEN_CSS_FILTER_OPTIMIZATION 1 /* Hurnjoo Lee(hurnjoo.lee@samsung.com : Optimize performance of css filters */
 
+#define ENABLE_TIZEN_BACKGROUND_DISK_CACHE 1 /* Byeongha.cho(byeongha.cho@samsung.com), Sungman Kim(ssungmai.kim@samsung.com) : Cache encoded image data to disk on background state. */
+
 #if ENABLE(NOTIFICATIONS)
 #define ENABLE_TIZEN_NOTIFICATIONS 1 /* Kihong Kwon(kihong.kwon@samsung.com) : Temp patch for notification score in the html5test.com */
 #endif
index ba2d89f..608e213 100644 (file)
@@ -2916,6 +2916,13 @@ Eina_Bool ewk_view_visibility_set(Evas_Object* ewkView, Eina_Bool enable)
 }
 #endif
 
+#if ENABLE(TIZEN_BACKGROUND_DISK_CACHE)
+Eina_Bool ewk_view_foreground_set(Evas_Object* ewkView, Eina_Bool enable)
+{
+    return true;
+}
+#endif
+
 Evas_Object* ewk_view_screenshot_contents_get(const Evas_Object* ewkView, Eina_Rectangle viewArea, float scaleFactor, Evas* canvas)
 {
     EINA_SAFETY_ON_NULL_RETURN_VAL(canvas, 0);
index b6b5ad3..66e1c38 100644 (file)
@@ -944,6 +944,18 @@ EAPI Eina_Bool ewk_view_custom_header_clear(const Evas_Object* o);
 EAPI Eina_Bool ewk_view_visibility_set(Evas_Object* o, Eina_Bool enable);
 //#endif
 
+//#if ENABLE(TIZEN_BACKGROUND_DISK_CACHE)
+/**
+ * Notify the foreground/background status of app.
+ *
+ * @param o view object that is in given status.
+ * @param enable EINA_TRUE to notify that page is foreground, EINA_FALSE otherwise.
+ *
+ * @return @c EINA_TRUE on successful request, @c EINA_FALSE on errors
+ */
+EAPI Eina_Bool ewk_view_foreground_set(Evas_Object* o, Eina_Bool enable);
+//#endif
+
 /**
  * Returns the evas image object of the specified viewArea of page
  *