(browser)
| 122 | |
| 123 | |
| 124 | def set_javascript_bindings(browser): |
| 125 | external = External(browser) |
| 126 | bindings = cef.JavascriptBindings( |
| 127 | bindToFrames=False, bindToPopups=False) |
| 128 | bindings.SetProperty("python_property", "This property was set in Python") |
| 129 | bindings.SetProperty("cefpython_version", cef.GetVersion()) |
| 130 | bindings.SetFunction("html_to_data_uri", html_to_data_uri) |
| 131 | bindings.SetObject("external", external) |
| 132 | browser.SetJavascriptBindings(bindings) |
| 133 | |
| 134 | |
| 135 | def js_print(browser, lang, event, msg): |
no test coverage detected