Version 2 (modified by, 12 years ago) (diff)


This tutorial is an effect of collaboration between Samsung Poland R&D Center and Silesian Univeristy of Technology. It's a part of subject: "Writing tutorial about a WebKit-Efl API"

Author: Martyna Kubaczka (kubaczkam [at]

The Settings API


Module ewk_settings.h includes general purpose settings, not tied to any particular view object but they affect on the WebKit itself. Most of them are connected to the databases (HTML5 Web Database, HTML5 local storage indexing database, HTML 5 local storage database, icon database) and cache memory feature.


HTML5 Web database:

  • getting or manipulating the default maximum size
  • getting current path to the directory where Webkit will write the database
  • setting new path to the directory where Webkit will write the database

HTML5 local storage indexing database (the local tracker storage database that keeps the individual views of local storage database):

  • clearing data from a particular database for the given URL(origin)
  • removing all databases of local origin

Icon database:

  • getting current path to the directory where Webkit will write the database or set a new path for this directory
  • removing all known icons from database
  • quering icon for the given URL and get associated cairo surface
  • getting image of the Evas_Object type for the given URL of image

Application cache:

  • getting or setting a path where the application cache will be stored
  • getting or manipulating maximum size of the cache for HTML5 Offline Web Applications
  • removing all entries from HTML5 application cache
  • creating Evas_Object of type image representing the given URL
  • checking whether the Shadow DOM (method which is establishing interaction between DOM subtrees) is enabled
  • manipulating values for delay of repaints (repaint throttling) – it gives possibility of slow loading of page when it is necessary
  • getting the default interval for DOMTimers on all pages (DOMTimer interval is number of milliseconds that javascript method setinterval() waits and then execute the given function once at every given time-interval)

Dependency diagram

Parts of WebCore and libraries which are related to ewk_settings.h