Exemple #1
0
// CacheModel returns the current cache model.
//
// See also: webkit_web_context_get_cache_model at
// http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebContext.html#webkit-web-context-get-cache-model.
func (wc *WebContext) CacheModel() CacheModel {
	return CacheModel(C.int(C.webkit_web_context_get_cache_model(wc.webContext)))
}
Exemple #2
0
// CacheModel is a wrapper around webkit_web_context_get_cache_model().
func (w *WebContext) CacheModel() CacheModel {
	c := C.webkit_web_context_get_cache_model(w.native())
	return CacheModel(c)
}