
Make ZwpTextInputV1 and ZwpTextInputV3 single instances per WaylandConnection, shared by multiple per-window WaylandInputMethodContext instances. Introduce new text-input focus derived from text-input-v3 enter/leave for: - Ensuring the correct WaylandInputMethodContext is set as the v3 client. - Determining window focus if keyboard focus isn't available. Remove `WaylandWindowObserver::OnKeyboardFocusedWindowChanged()` and add `WaylandWindow::FocusClient` instead for notifying keyboard and text input focus changes specifically for that window. This makes it possible for the WaylandWindow to keep a reference to the associated WaylandInputMethodContext and directly notify focus changes to it. Bug: 414284073 Change-Id: Id8ced1a690c759107983a5c1cb71195f9556a1d7 Fixed: 368299543, 369574355, 372650991 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6496390 Reviewed-by: Kramer Ge <fangzhoug@chromium.org> Reviewed-by: Thomas Anderson <thomasanderson@chromium.org> Commit-Queue: Orko Garai <orko@igalia.com> Cr-Commit-Position: refs/heads/main@{#1455466}
This directory contains UI frameworks used to build various user interface features. This directory is not intended to contain UI features (such as a keyboard).