Esempio n. 1
0
void TestRunner::closeWebInspector()
{
    WebKitWebView* webView = webkit_web_frame_get_web_view(mainFrame);
    WebKitWebInspector* inspector = webkit_web_view_get_inspector(webView);

    webkit_web_inspector_close(inspector);
}
void LayoutTestController::closeWebInspector()
{
    WebKitWebView* webView = webkit_web_frame_get_web_view(mainFrame);
    WebKitWebInspector* inspector = webkit_web_view_get_inspector(webView);

    webkit_web_inspector_close(inspector);
}
Esempio n. 3
0
static VALUE
WebInspector_close(VALUE self)
{
  WebKitWebInspector *_self = ((WebKitWebInspector*)RVAL2GOBJ(self));

#line 160 "/home/geoff/Projects/gtk-webkit-ruby/ext/webkit/webkit.cr"
  webkit_web_inspector_close(_self);
 
  return Qnil;
}
Esempio n. 4
0
//add by zlf end. 2014.11.12
static gboolean toggleWebInspector(BrowserWindow *window, gpointer user_data)
{
    WebKitWebInspector *inspectorWindow;

    inspectorWindow = webkit_web_view_get_inspector(WEBKIT_WEB_VIEW(window->webView));
    if (!window->inspectorWindowIsVisible) {
        webkit_web_inspector_show(inspectorWindow);
        window->inspectorWindowIsVisible = TRUE;
    } else
        webkit_web_inspector_close(inspectorWindow);

    return TRUE;
}
Esempio n. 5
0
File: main.c Progetto: macrat/rusk
void toggleInspector(RuskWindow *rusk)
{
	g_object_set(G_OBJECT(webkit_web_view_get_settings(rusk->webview)), "enable-developer-extras", TRUE, NULL);

	WebKitWebInspector *inspector = webkit_web_view_get_inspector(rusk->webview);

	if(webkit_web_inspector_is_attached(inspector))
	{
		webkit_web_inspector_close(inspector);
	}else
	{
		webkit_web_inspector_show(inspector);
	}
}
Esempio n. 6
0
static VbResult normal_view_inspector(Client *c, const NormalCmdInfo *info)
{
    WebKitSettings *settings;

    settings = webkit_web_view_get_settings(c->webview);

    /* Try to get the inspected uri to identify if the inspector is shown at
     * the time or not. */
    if (webkit_web_inspector_is_attached(c->inspector)) {
        webkit_web_inspector_close(c->inspector);
    } else if (webkit_settings_get_enable_developer_extras(settings)) {
        webkit_web_inspector_show(c->inspector);
    } else {
        /* Inform the user on attempt to enable webinspector when the
         * developer extra are not enabled. */
        vb_echo(c, MSG_ERROR, TRUE, "webinspector is not enabled");

        return RESULT_ERROR;
    }
    return RESULT_COMPLETE;
}
Esempio n. 7
0
 void close()
 {
     webkit_web_inspector_close(m_inspector);
 }