MCPcopy Create free account
hub / github.com/cztomczak/cefpython / OnBeforeUnloadDialog

Method OnBeforeUnloadDialog

src/client_handler/dialog_handler_gtk.cpp:360–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360bool ClientDialogHandlerGtk::OnBeforeUnloadDialog(
361 CefRefPtr<CefBrowser> browser,
362 const CefString& message_text,
363 bool is_reload,
364 CefRefPtr<CefJSDialogCallback> callback) {
365 CEF_REQUIRE_UI_THREAD();
366
367 const std::string& new_message_text =
368 message_text.ToString() + "\n\nIs it OK to leave/reload this page?";
369 bool suppress_message = false;
370
371 return OnJSDialog(browser, CefString(), JSDIALOGTYPE_CONFIRM,
372 new_message_text, CefString(), callback, suppress_message);
373}
374
375void ClientDialogHandlerGtk::OnResetDialogState(CefRefPtr<CefBrowser> browser) {
376 CEF_REQUIRE_UI_THREAD();

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.80

Tested by

no test coverage detected