コード例 #1
0
ファイル: webcontext.go プロジェクト: visionect/go-webkit2
// 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)))
}
コード例 #2
0
ファイル: webkit2.go プロジェクト: jrick/go-webkit2
// 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)
}