mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
io/router: [API] make SemanticID a uint, not uint64
4 billion semantic IDs should be enough for everyone. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -750,7 +750,6 @@ func (w *window) initAccessibilityNodeInfo(env *C.JNIEnv, sem router.SemanticNod
|
||||
}
|
||||
|
||||
func (w *window) virtualIDFor(id router.SemanticID) C.jint {
|
||||
// TODO: Android virtual IDs are 32-bit Java integers, but childID is a int64.
|
||||
if id == w.semantic.rootID {
|
||||
return HOST_VIEW_ID
|
||||
}
|
||||
|
||||
+1
-1
@@ -88,7 +88,7 @@ const (
|
||||
// SemanticID uniquely identifies a SemanticDescription.
|
||||
//
|
||||
// By convention, the zero value denotes the non-existent ID.
|
||||
type SemanticID uint64
|
||||
type SemanticID uint
|
||||
|
||||
type handlerEvents struct {
|
||||
handlers map[event.Tag][]event.Event
|
||||
|
||||
Reference in New Issue
Block a user