void WebInspectorProxy::platformDetach() { if (!inspectedPage()->isValid()) return; GRefPtr<GtkWidget> inspectorView = m_inspectorView; if (!m_client.detach(this)) { // Detach is called when m_isAttached is true, but it could called before // the inspector is opened if the inspector is shown/closed quickly. So, // we might not have a parent yet. if (GtkWidget* parent = gtk_widget_get_parent(m_inspectorView)) gtk_container_remove(GTK_CONTAINER(parent), m_inspectorView); } // Return early if we are not visible. This means the inspector was closed while attached // and we should not create and show the inspector window. if (!m_isVisible) { // The inspector view will be destroyed, but we don't need to notify the web process to close the // inspector in this case, since it's already closed. g_signal_handlers_disconnect_by_func(m_inspectorView, reinterpret_cast<void*>(inspectorViewDestroyed), this); m_inspectorView = nullptr; return; } createInspectorWindow(); }
void WebInspectorProxy::platformOpen() { if (m_isAttached) platformAttach(); else createInspectorWindow(); evas_object_smart_callback_add(m_inspectorView, "inspector,view,close", closeInspectorWindow, this); }
void WebInspectorProxy::platformOpen() { ASSERT(!m_inspectorWindow); ASSERT(m_inspectorView); if (m_isAttached) platformAttach(); else createInspectorWindow(); g_signal_connect(m_inspectorView, "destroy", G_CALLBACK(inspectorViewDestroyed), this); }
void WebInspectorProxy::platformDetach() { if (!m_page->isValid()) return; GRefPtr<GtkWidget> inspectorView = m_inspectorView; if (!m_client.detach(this)) { GtkWidget* parent = gtk_widget_get_parent(m_inspectorView); ASSERT(parent); gtk_container_remove(GTK_CONTAINER(parent), m_inspectorView); } if (!m_isVisible) return; createInspectorWindow(); }
void WebInspectorProxy::platformAttach() { // FIXME: EFL port doesn't support to attach inspector view to browser window yet. For now new inspector window is shown instead. createInspectorWindow(); }