示例#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
// 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))
}