Chromium Code Reviews
DescriptionDesktopNativeCursorManager currently only has
knowledge of a single RootWindow, which means
that it is possible for a change in cursor state
within one RootWindow to cause another RootWindow
to have a stale cursor state. This CL makes changes
in cursor state global among all root windows
by doing the following:
- Make CursorManager and DesktopNativeCursorManager
static members of DesktopNativeWidgetAura.
- Maintain a set of root windows in
DesktopNativeCursorManager.
- When a native widget is initialized, add its
owned root window to this set. When a native
widget is destroyed, remove its owned root window
from this set.
- Whenever a call to the public CursorClient API
causes a change in cursor state, inform all root
windows in this set.
This change makes cursor management for desktop
Aura behave similar to cursor management in Ash,
where all root windows are already notified of
cursor state changes.
BUG=324006
TEST=DesktopNativeWidgetAuraTest.GlobalCursorState
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240827
Patch Set 1 #Patch Set 2 : updated WIP #Patch Set 3 : Test added #
Total comments: 3
Patch Set 4 : Updated patch #Patch Set 5 : Updated patch #Patch Set 6 : Updated patch #
Total comments: 3
Patch Set 7 : Don't copy set of root windows before iterating #Messages
Total messages: 22 (0 generated)
|