]> git.sesse.net Git - nageru/blobdiff - cef_capture.cpp
Implement HTMLInput::reload().
[nageru] / cef_capture.cpp
index a2f230aae9af610ec6710278b33f1ccbbe462472..548e529ad3d2e5dc457e638288c787043d2016eb 100644 (file)
@@ -56,6 +56,13 @@ void CEFCapture::set_url(const string &url)
        });
 }
 
+void CEFCapture::reload()
+{
+       post_to_cef_ui_thread([this] {
+               browser->Reload();
+       });
+}
+
 void CEFCapture::OnPaint(const void *buffer, int width, int height)
 {
        steady_clock::time_point timestamp = steady_clock::now();