Chromium Code Reviews
DescriptionCursor state should be global for all CursorManagers
Make the members that relate to cursor state in
CursorManager static so they can be shared among
all CursorManagers. Ash already only uses a single
CursorManager, and desktop Aura already stores the
same cursor state information in the CursorManager
corresponding to each RootWindow instance.
This CL also simplifies the naming and location of
accessors between the CursorClient and
NativeCursorDelegate interfaces. Further cleanup is
possible pending design discussion.
DesktopNativeCursorManager 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 class will be
modified in a follow-up patch to store a static set
of CursorManagers and notify each of them on a
cursor state change (see
https://codereview.chromium.org/100173003/).
BUG=325975
TEST=CursorManagerTest.CursorManagerGlobalState
Patch Set 1 #Patch Set 2 : make cursor state in CursorManager static #Patch Set 3 : stale cursor state updated when root window created #Patch Set 4 : Patch for review #
Total comments: 10
Patch Set 5 : comments addressed #
Messages
Total messages: 12 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||