Lines Matching refs:webView
32 static void createFrameSignalTestFrameCreatedCallback(WebKitWebView* webView, WebKitWebFrame* frame… in createFrameSignalTestFrameCreatedCallback() argument
46 GtkWidget* webView; in test_webkit_web_frame_created_signal() local
52 webView = webkit_web_view_new(); in test_webkit_web_frame_created_signal()
53 …g_signal_connect(webView, "frame-created", G_CALLBACK(createFrameSignalTestFrameCreatedCallback), … in test_webkit_web_frame_created_signal()
61 gtk_container_add(GTK_CONTAINER(window), webView); in test_webkit_web_frame_created_signal()
63 gtk_widget_show(webView); in test_webkit_web_frame_created_signal()
65 webkit_web_view_load_string(WEBKIT_WEB_VIEW(webView), in test_webkit_web_frame_created_signal()
76 GtkWidget *webView; in test_webkit_web_frame_create_destroy() local
80 webView = webkit_web_view_new(); in test_webkit_web_frame_create_destroy()
81 g_object_ref_sink(webView); in test_webkit_web_frame_create_destroy()
82 g_assert_cmpint(G_OBJECT(webView)->ref_count, ==, 1); in test_webkit_web_frame_create_destroy()
84 g_object_unref(webView); in test_webkit_web_frame_create_destroy()
88 webView = webkit_web_view_new(); in test_webkit_web_frame_create_destroy()
89 gtk_container_add(GTK_CONTAINER(window), webView); in test_webkit_web_frame_create_destroy()
91 gtk_widget_show(webView); in test_webkit_web_frame_create_destroy()
92 gtk_widget_destroy(webView); in test_webkit_web_frame_create_destroy()
97 WebKitWebView* webView; in test_webkit_web_frame_lifetime() local
101 webView = WEBKIT_WEB_VIEW(webkit_web_view_new()); in test_webkit_web_frame_lifetime()
102 g_object_ref_sink(webView); in test_webkit_web_frame_lifetime()
103 g_assert_cmpint(G_OBJECT(webView)->ref_count, ==, 1); in test_webkit_web_frame_lifetime()
104 webFrame = webkit_web_view_get_main_frame(webView); in test_webkit_web_frame_lifetime()
112 g_object_unref(webView); in test_webkit_web_frame_lifetime()
121 static gboolean print_requested_cb(WebKitWebView* webView, WebKitWebFrame* webFrame, GMainLoop* loo… in print_requested_cb() argument
123 g_object_set_data(G_OBJECT(webView), "signal-handled", GINT_TO_POINTER(TRUE)); in print_requested_cb()
136 WebKitWebView* webView; in test_webkit_web_frame_printing() local
138 webView = WEBKIT_WEB_VIEW(webkit_web_view_new()); in test_webkit_web_frame_printing()
139 g_object_ref_sink(webView); in test_webkit_web_frame_printing()
140 g_assert_cmpint(G_OBJECT(webView)->ref_count, ==, 1); in test_webkit_web_frame_printing()
142 webkit_web_view_load_string(webView, in test_webkit_web_frame_printing()
151 g_signal_connect(webView, "print-requested", in test_webkit_web_frame_printing()
155 g_object_set_data(G_OBJECT(webView), "signal-handled", GINT_TO_POINTER(FALSE)); in test_webkit_web_frame_printing()
156 webkit_web_view_execute_script (webView, "print();"); in test_webkit_web_frame_printing()
164 …g_assert_cmpint(GPOINTER_TO_INT(g_object_get_data(G_OBJECT(webView), "signal-handled")), ==, TRUE); in test_webkit_web_frame_printing()
184 WebKitWebFrame* webFrame = webkit_web_view_get_main_frame(webView); in test_webkit_web_frame_printing()
198 g_object_unref(webView); in test_webkit_web_frame_printing()