Group inline links and list items into browse lines
This commit is contained in:
1 parent
3dbd7f2554
commit
d01965c00d
16 files changed
+309
-15
No files matched your search
@@ -575,6 +575,7 @@ cthulhu_snapshot cthulhu_capture_snapshot(AtspiAccessible *source, gboolean capt
|
||||
if (xmlRoles != NULL) {
|
||||
snapshot.xmlRoles = g_strdup(xmlRoles);
|
||||
}
|
||||
snapshot.display = g_strdup(g_hash_table_lookup(attributes, "display"));
|
||||
const gchar *htmlTag = g_hash_table_lookup(attributes, "tag");
|
||||
if (htmlTag != NULL) snapshot.htmlTag = g_strdup(htmlTag);
|
||||
const gchar *elementID = g_hash_table_lookup(attributes, "id");
|
||||
|
||||
@@ -53,6 +53,7 @@ typedef struct {
|
||||
gchar *valueText;
|
||||
gchar *xmlRoles;
|
||||
gchar *htmlTag;
|
||||
gchar *display;
|
||||
gchar *elementID;
|
||||
gboolean supportsClick;
|
||||
gboolean liveRegion;
|
||||
|
||||
@@ -162,6 +162,7 @@ func snapshotFromNativeWithOptions(source *C.AtspiAccessible, text, caretCharact
|
||||
snapshot.CharacterCount = characterCount
|
||||
snapshot.EmbeddedObjectCount = int(captured.embeddedObjectCount)
|
||||
snapshot.XMLRoles = sanitizeSnapshotField(C.GoString(captured.xmlRoles))
|
||||
snapshot.Display = sanitizeSnapshotField(C.GoString(captured.display))
|
||||
snapshot.HTMLTag = sanitizeSnapshotField(C.GoString(captured.htmlTag))
|
||||
snapshot.ElementID = sanitizeSnapshotField(C.GoString(captured.elementID))
|
||||
snapshot.CurrentValue = float64(captured.currentValue)
|
||||
@@ -181,6 +182,7 @@ func snapshotFromNativeWithOptions(source *C.AtspiAccessible, text, caretCharact
|
||||
C.g_free(C.gpointer(captured.valueText))
|
||||
C.g_free(C.gpointer(captured.xmlRoles))
|
||||
C.g_free(C.gpointer(captured.htmlTag))
|
||||
C.g_free(C.gpointer(captured.display))
|
||||
C.g_free(C.gpointer(captured.elementID))
|
||||
return snapshot
|
||||
}
|
||||
|
||||
@@ -140,6 +140,7 @@ type Snapshot struct {
|
||||
ToolkitName string
|
||||
XMLRoles string
|
||||
HTMLTag string
|
||||
Display string // CSS display attribute used for document line boundaries.
|
||||
ElementID string
|
||||
|
||||
// PositionInSet is one-based; zero means unavailable. SetSize must be
|
||||
|
||||
Reference in new issue
Block a user