
This CL introduces a new ClientDestroyedWidget() method on NativeWidgetPrivate. This the associated NativeWidget to clear any Widget-associated state and avoid dangling pointers. This is specifically necessary under the CLIENT_OWNS_WIDGET ownership model where the NativeWidget (managed by the OS) can outlive the Widget. This patch leverages this method to clear widget-associated state on - DesktopBrowserFrameAura - BrowserDesktopWindowTreeHostWin - BrowserDesktopWindowTreeHostLinux A follow up will leverage this new method to additionally clear such state from Mac NativeWidget classes. Bug: 413168662, 413385730 Change-Id: Ie3825b624cf2853865f3f501e673d3ddcf24aa5b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6497480 Reviewed-by: Darryl James <dljames@chromium.org> Reviewed-by: Keren Zhu <kerenzhu@chromium.org> Commit-Queue: Tom Lukaszewicz <tluk@chromium.org> Cr-Commit-Position: refs/heads/main@{#1454902}
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).