Prerender first frame of new view size before angle is changed.
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / API / efl / ewk_view.h
index b7279be..bc286e5 100755 (executable)
@@ -1680,6 +1680,22 @@ EAPI void ewk_view_content_security_policy_set(Evas_Object* o, const char* polic
  */
 EAPI Eina_Bool ewk_view_page_save(Evas_Object* o, const char* path);
 
+/*
+ * Prepare the rotation of the device.
+ *
+ * This function trigger prerendering first frame of new view size before target's angle is changed.
+ * When prerendering is done, "rotate,prepared" event will occur.
+ *
+ * @param o view object to receive orientation event.
+ * @param angle the new angle of the device. (degree)
+ *
+ * angle will be 0 degrees when the device is oriented to natural position,
+ *               90 degrees when it's right side is at the top,
+ *               180 degrees when it is upside down.
+ *               270 degrees when it's left side is at the top,
+ */
+EAPI void ewk_view_rotation_prepare(Evas_Object* ewkView, int angle);
+
 #ifdef __cplusplus
 }
 #endif