1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
/*
* Copyright (C) 2023 Igalia S.L.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
@API_SINGLE_HEADER_GUARD@
#ifndef WebKitFeature_h
#define WebKitFeature_h
#include <glib-object.h>
#include <@API_INCLUDE_PREFIX@/WebKitDefines.h>
G_BEGIN_DECLS
/**
* WebKitFeatureStatus:
* @WEBKIT_FEATURE_STATUS_EMBEDDER: Feature that adjust behaviour for
* specific application needs. The feature is not part of a Web platform
* feature, not a mature feature intended to be always on.
* @WEBKIT_FEATURE_STATUS_UNSTABLE: Feature in development. The feature
* may be unfinished, and there are no guarantees about its safety and
* stability.
* @WEBKIT_FEATURE_STATUS_INTERNAL: Feature for debugging the WebKit engine.
* The feature is not generally useful for user or web developers, and
* always disabled by default.
* @WEBKIT_FEATURE_STATUS_DEVELOPER: Feature for web developers. The feature
* is not generally useful for end users, and always disabled by default.
* @WEBKIT_FEATURE_STATUS_TESTABLE: Feature in active development and
* complete enough for testing. The feature may not be yet ready to
* ship and is disabled by default.
* @WEBKIT_FEATURE_STATUS_PREVIEW: Feature ready to be tested by users.
* The feature is disabled by default, but may be enabled by applications
* automatically e.g. in their “technology preview” or “beta” versions.
* @WEBKIT_FEATURE_STATUS_STABLE: Feature ready for general use. The
* feature is enabled by default, but it may still be toggled to support
* debugging and testing.
* @WEBKIT_FEATURE_STATUS_MATURE: Feature in general use. The feature is
* always enabled and in general there should be no user-facing interface
* to toggle it.
*
* Describes the status of a [struct@WebKitFeature].
*
* The status for a given feature can be obtained with
* [id@webkit_feature_get_status].
*
* Since: 2.42
*/
typedef enum {
WEBKIT_FEATURE_STATUS_EMBEDDER,
WEBKIT_FEATURE_STATUS_UNSTABLE,
WEBKIT_FEATURE_STATUS_INTERNAL,
WEBKIT_FEATURE_STATUS_DEVELOPER,
WEBKIT_FEATURE_STATUS_TESTABLE,
WEBKIT_FEATURE_STATUS_PREVIEW,
WEBKIT_FEATURE_STATUS_STABLE,
WEBKIT_FEATURE_STATUS_MATURE,
} WebKitFeatureStatus;
#define WEBKIT_TYPE_FEATURE (webkit_feature_get_type())
typedef struct _WebKitFeature WebKitFeature;
WEBKIT_API GType
webkit_feature_get_type (void) G_GNUC_CONST;
WEBKIT_API WebKitFeature *
webkit_feature_ref (WebKitFeature *feature);
WEBKIT_API void
webkit_feature_unref (WebKitFeature *feature);
WEBKIT_API const char *
webkit_feature_get_identifier (WebKitFeature *feature);
WEBKIT_API const char *
webkit_feature_get_name (WebKitFeature *feature);
WEBKIT_API const char *
webkit_feature_get_details (WebKitFeature *feature);
WEBKIT_API const char *
webkit_feature_get_category (WebKitFeature *feature);
WEBKIT_API WebKitFeatureStatus
webkit_feature_get_status (WebKitFeature *feature);
WEBKIT_API gboolean
webkit_feature_get_default_value (WebKitFeature *feature);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(WebKitFeature, webkit_feature_unref)
#define WEBKIT_TYPE_FEATURE_LIST (webkit_feature_list_get_type())
typedef struct _WebKitFeatureList WebKitFeatureList;
WEBKIT_API GType
webkit_feature_list_get_type (void) G_GNUC_CONST;
WEBKIT_API WebKitFeatureList *
webkit_feature_list_ref (WebKitFeatureList *feature_list);
WEBKIT_API void
webkit_feature_list_unref (WebKitFeatureList *feature_list);
WEBKIT_API gsize
webkit_feature_list_get_length (WebKitFeatureList *feature_list);
WEBKIT_API WebKitFeature *
webkit_feature_list_get (WebKitFeatureList *feature_list,
gsize index);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(WebKitFeatureList, webkit_feature_list_unref)
G_END_DECLS
#endif /* WebKitFeature_h */
|