예제 #1
0
// SetCacheModel sets the current cache model.
//
// See also: webkit_web_context_set_cache_model at
// http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebContext.html#webkit-web-context-set-cache-model.
func (wc *WebContext) SetCacheModel(model CacheModel) {
	C.webkit_web_context_set_cache_model(wc.webContext, C.WebKitCacheModel(model))
}
예제 #2
0
파일: webkit2.go 프로젝트: jrick/go-webkit2
// SetCacheModel is a wrapper around webkit_web_context_set_cache_model().
func (w *WebContext) SetCacheModel(cm CacheModel) {
	C.webkit_web_context_set_cache_model(w.native(), C.WebKitCacheModel(cm))
}