While at it should we expose `mode`?

http://magpcss.org/ceforum/apidocs3/projects/(default)/CefDialogHandler.html