Dispatch source hit testing for native pointer clicks
Verify Tessera GUI / verify (push) Failing after 7m31s
Verify Tessera GUI / verify (push) Failing after 7m31s
This commit is contained in:
+17
-4
@@ -287,6 +287,16 @@ fn code_request(
|
||||
"X-Tessera-Revision",
|
||||
¤t.revision.to_string(),
|
||||
);
|
||||
add_header(
|
||||
&mut response,
|
||||
"X-Tessera-Session",
|
||||
¤t.document.frame.session.to_string(),
|
||||
);
|
||||
add_header(
|
||||
&mut response,
|
||||
"X-Tessera-Layout-Version",
|
||||
¤t.document.frame.layout_version.to_string(),
|
||||
);
|
||||
add_header(
|
||||
&mut response,
|
||||
"X-Tessera-Source-Kind",
|
||||
@@ -441,6 +451,9 @@ impl Worker {
|
||||
if !matches!(input.kind.as_str(), "click" | "focus") {
|
||||
return error_response(StatusCode(400), "unsupported event kind");
|
||||
}
|
||||
if let Err(message) = input.validate() {
|
||||
return error_response(StatusCode(400), message);
|
||||
}
|
||||
let current = match namespace.read() {
|
||||
Ok(current) => current,
|
||||
Err(_) => return error_response(StatusCode(500), "namespace lock poisoned"),
|
||||
@@ -755,12 +768,12 @@ expose actual type relations. Types, bases, instances and native constructors li
|
||||
in the same GC graph. Ordinary source classes support `class Child: Base`, typed field
|
||||
declarations, explicit first `self` parameters, positional field construction and
|
||||
member assignment. Inherited methods bind the actual receiver; overridden methods
|
||||
are dynamically selected through self. Native allocator subclasses and traits remain
|
||||
pending. Native Block/Page methods use the same type method tables and binding path.
|
||||
are dynamically selected through self. Concrete native visual subclasses reuse real native allocators; abstract bases remain unconstructible. Traits and annotation checking remain pending. Native Block/Page methods use the same type method tables and binding path.
|
||||
|
||||
Source paint overrides execute in the actual frame pipeline under a read-only heap policy. Source hitTest overrides similarly refine native pointer targets in VM paint order; Point.inside(bounds) and Point.inCircle(cx, cy, radius) provide primitive shape queries. Managed DisplayList/ObjectList/PaintCommand and Constraints/Bounds/Point results are ordinary runtime objects.
|
||||
|
||||
Native input POST /events is a transport envelope, not Endor source. The window
|
||||
sends current session, layout_version and Mount identity; stale positions fail
|
||||
without calling a callback. Native mouse, Tab, Enter and Space delegate to the same
|
||||
sends current session, layout_version and Mount identity; stale positions fail without calling a callback. Pointer clicks also include point and press_point [x,y] in logical page coordinates. Both targets are resolved through read-only hitTest, with fallback behind a rejected candidate; a click is dispatched only when both resolve to the same Mount. Keyboard/code clicks omit coordinates and remain semantic activation. GET /code also exposes X-Tessera-Session and X-Tessera-Layout-Version headers for transport clients. Native mouse, Tab, Enter and Space delegate to the same
|
||||
managed click/focus methods used by code. Events appear in Network, not Console source history.
|
||||
|
||||
## UI host object
|
||||
|
||||
Reference in New Issue
Block a user