static void inspectorViewDestroyed(GtkWidget*, gpointer userData) { WebInspectorProxy* inspectorProxy = static_cast<WebInspectorProxy*>(userData); // Inform WebProcess about webinspector closure. Not doing so, // results in failure of subsequent invocation of webinspector. inspectorProxy->close(); }
static gboolean inspectorWindowDestroyed(GtkWidget* window, GdkEvent*, gpointer userData) { WebInspectorProxy* inspectorProxy = static_cast<WebInspectorProxy*>(userData); // Inform WebProcess about webinspector closure. Not doing so, // results in failure of subsequent invocation of webinspector. inspectorProxy->close(); inspectorProxy->windowDestroyed(); return FALSE; }
Eina_Bool ewk_view_inspector_close(Evas_Object* ewkView) { #if ENABLE(INSPECTOR) EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, false); WebInspectorProxy* inspector = impl->page()->inspector(); if (inspector) inspector->close(); return true; #else return false; #endif }
static void closeInspectorWindow(void* userData, Evas_Object*, void*) { WebInspectorProxy* inspectorProxy = static_cast<WebInspectorProxy*>(userData); inspectorProxy->close(); }
static void processDidCrash(WKPageRef, const void* clientInfo) { WebInspectorProxy* webInspectorProxy = static_cast<WebInspectorProxy*>(const_cast<void*>(clientInfo)); ASSERT(webInspectorProxy); webInspectorProxy->close(); }