static void webkit_network_request_class_init(WebKitNetworkRequestClass* requestClass) { GObjectClass* objectClass = G_OBJECT_CLASS(requestClass); objectClass->dispose = webkit_network_request_dispose; objectClass->finalize = webkit_network_request_finalize; objectClass->get_property = webkit_network_request_get_property; objectClass->set_property = webkit_network_request_set_property; webkit_init(); /** * WebKitNetworkRequest:uri: * * The URI to which the request will be made. * * Since: 1.1.10 */ g_object_class_install_property(objectClass, PROP_URI, g_param_spec_string("uri", _("URI"), _("The URI to which the request will be made."), NULL, (GParamFlags)(WEBKIT_PARAM_READWRITE))); /** * WebKitNetworkRequest:message: * * The #SoupMessage that backs the request. * * Since: 1.1.10 */ g_object_class_install_property(objectClass, PROP_MESSAGE, g_param_spec_object("message", _("Message"), _("The SoupMessage that backs the request."), SOUP_TYPE_MESSAGE, (GParamFlags)(WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY))); g_type_class_add_private(requestClass, sizeof(WebKitNetworkRequestPrivate)); }
static void webkit_hit_test_result_class_init(WebKitHitTestResultClass* webHitTestResultClass) { GObjectClass* objectClass = G_OBJECT_CLASS(webHitTestResultClass); objectClass->finalize = webkit_hit_test_result_finalize; objectClass->get_property = webkit_hit_test_result_get_property; objectClass->set_property = webkit_hit_test_result_set_property; webkit_init(); /** * WebKitHitTestResult:context: * * Flags indicating the kind of target that received the event. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_CONTEXT, g_param_spec_flags("context", _("Context"), _("Flags indicating the kind of target that received the event."), WEBKIT_TYPE_HIT_TEST_RESULT_CONTEXT, WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT, static_cast<GParamFlags>((WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY)))); /** * WebKitHitTestResult:link-uri: * * The URI to which the target that received the event points, if any. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_LINK_URI, g_param_spec_string("link-uri", _("Link URI"), _("The URI to which the target that received the event points, if any."), NULL, static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY))); /** * WebKitHitTestResult:image-uri: * * The URI of the image that is part of the target that received the event, if any. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_IMAGE_URI, g_param_spec_string("image-uri", _("Image URI"), _("The URI of the image that is part of the target that received the event, if any."), NULL, static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY))); /** * WebKitHitTestResult:media-uri: * * The URI of the media that is part of the target that received the event, if any. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_MEDIA_URI, g_param_spec_string("media-uri", _("Media URI"), _("The URI of the media that is part of the target that received the event, if any."), NULL, static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY))); g_type_class_add_private(webHitTestResultClass, sizeof(WebKitHitTestResultPrivate)); }
static void webkit_web_window_features_class_init(WebKitWebWindowFeaturesClass* klass) { GObjectClass* gobject_class = G_OBJECT_CLASS(klass); gobject_class->set_property = webkit_web_window_features_set_property; gobject_class->get_property = webkit_web_window_features_get_property; GParamFlags flags = (GParamFlags)(WEBKIT_PARAM_READWRITE | G_PARAM_CONSTRUCT); webkit_init(); /** * WebKitWebWindowFeatures:x: * * The starting x position of the window on the screen. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_X, g_param_spec_int( "x", "x", "The starting x position of the window on the screen.", -1, G_MAXINT, -1, flags)); /** * WebKitWebWindowFeatures:y: * * The starting y position of the window on the screen. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_Y, g_param_spec_int( "y", "y", "The starting y position of the window on the screen.", -1, G_MAXINT, -1, flags)); /** * WebKitWebWindowFeatures:width: * * The width of the window on the screen. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_WIDTH, g_param_spec_int( "width", "Width", "The width of the window on the screen.", -1, G_MAXINT, -1, flags)); /** * WebKitWebWindowFeatures:height: * * The height of the window on the screen. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_HEIGHT, g_param_spec_int( "height", "Height", "The height of the window on the screen.", -1, G_MAXINT, -1, flags)); /** * WebKitWebWindowFeatures:toolbar-visible: * * Controls whether the toolbar should be visible for the window. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_TOOLBAR_VISIBLE, g_param_spec_boolean( "toolbar-visible", "Toolbar Visible", "Controls whether the toolbar should be visible for the window.", TRUE, flags)); /** * WebKitWebWindowFeatures:statusbar-visible: * * Controls whether the statusbar should be visible for the window. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_STATUSBAR_VISIBLE, g_param_spec_boolean( "statusbar-visible", "Statusbar Visible", "Controls whether the statusbar should be visible for the window.", TRUE, flags)); /** * WebKitWebWindowFeatures:scrollbar-visible: * * Controls whether the scrollbars should be visible for the window. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_SCROLLBAR_VISIBLE, g_param_spec_boolean( "scrollbar-visible", "Scrollbar Visible", "Controls whether the scrollbars should be visible for the window.", TRUE, flags)); /** * WebKitWebWindowFeatures:menubar-visible: * * Controls whether the menubar should be visible for the window. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_MENUBAR_VISIBLE, g_param_spec_boolean( "menubar-visible", "Menubar Visible", "Controls whether the menubar should be visible for the window.", TRUE, flags)); /** * WebKitWebWindowFeatures:locationbar-visible: * * Controls whether the locationbar should be visible for the window. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_LOCATIONBAR_VISIBLE, g_param_spec_boolean( "locationbar-visible", "Locationbar Visible", "Controls whether the locationbar should be visible for the window.", TRUE, flags)); /** * WebKitWebWindowFeatures:fullscreen: * * Controls whether window will be displayed fullscreen. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_FULLSCREEN, g_param_spec_boolean( "fullscreen", "Fullscreen", "Controls whether window will be displayed fullscreen.", FALSE, flags)); g_type_class_add_private(klass, sizeof(WebKitWebWindowFeaturesPrivate)); }
static void webkit_hit_test_result_class_init(WebKitHitTestResultClass* webHitTestResultClass) { GObjectClass* objectClass = G_OBJECT_CLASS(webHitTestResultClass); objectClass->finalize = webkit_hit_test_result_finalize; objectClass->get_property = webkit_hit_test_result_get_property; objectClass->set_property = webkit_hit_test_result_set_property; webkit_init(); /** * WebKitHitTestResult:context: * * Flags indicating the kind of target that received the event. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_CONTEXT, g_param_spec_flags("context", _("Context"), _("Flags indicating the kind of target that received the event."), WEBKIT_TYPE_HIT_TEST_RESULT_CONTEXT, WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT, static_cast<GParamFlags>((WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY)))); /** * WebKitHitTestResult:link-uri: * * The URI to which the target that received the event points, if any. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_LINK_URI, g_param_spec_string("link-uri", _("Link URI"), _("The URI to which the target that received the event points, if any."), NULL, static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY))); /** * WebKitHitTestResult:image-uri: * * The URI of the image that is part of the target that received the event, if any. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_IMAGE_URI, g_param_spec_string("image-uri", _("Image URI"), _("The URI of the image that is part of the target that received the event, if any."), NULL, static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY))); /** * WebKitHitTestResult:media-uri: * * The URI of the media that is part of the target that received the event, if any. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_MEDIA_URI, g_param_spec_string("media-uri", _("Media URI"), _("The URI of the media that is part of the target that received the event, if any."), NULL, static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY))); /** * WebKitHitTestResult:inner-node: * * The DOM node at the coordinates where the hit test * happened. Keep in mind that the node might not be * representative of the information given in the context * property, since WebKit uses a series of heuristics to figure * out that information. One common example is inner-node having * the text node inside the anchor (<a>) tag; WebKit knows the * whole context and will put WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK * in the 'context' property, but the user might be confused by * the lack of any link tag in 'inner-node'. * * Since: 1.3.2 */ g_object_class_install_property(objectClass, PROP_INNER_NODE, g_param_spec_object("inner-node", _("Inner node"), _("The inner DOM node associated with the hit test result."), WEBKIT_TYPE_DOM_NODE, static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY))); g_type_class_add_private(webHitTestResultClass, sizeof(WebKitHitTestResultPrivate)); }