ws2: Support cursors for embedded windows.
For top level client windows, the cursor is stored in WmNativeWidgetAura. For embed roots, it's stored in ServerWindow. CompoundEventFilter will retrieve the stored cursor while handling mouse events by using aura::WindowDelegate::GetCursor. Depending on the target of the mouse event, the WindowDelegate will be either WindowDelegateImpl (which retrieves it from ServerWindow or delegates to the top level's delegate) or WmNativeWidgetAura (which returns its own copy of the cursor). To test, hover over input field of KSV via: 1. chrome --keyboard-shortcut-viewer-app Ctrl+Alt+/ or 2. ash_shell_with_content Bug: 837705 Change-Id: I247b41937aada5a9b161eb469d8230d06890a63b Reviewed-on: https://chromium-review.googlesource.com/1068661 Commit-Queue: Evan Stade <estade@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#567870}
Showing
ash/cursor_unittest.cc
0 → 100644
Please register or sign in to comment