Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Issue 92413002: Cursor state should be global for all CursorManagers (Closed)

Created:
7 years ago by tdanderson
Modified:
7 years ago
CC:
chromium-reviews, tfarina, ben+views_chromium.org
Visibility:
Public.

Description

Cursor 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -85 lines) Patch
M ash/test/ash_test_base.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M ash/test/cursor_manager_test_api.cc View 1 2 3 1 chunk +5 lines, -6 lines 0 comments Download
M ash/wm/ash_native_cursor_manager.cc View 1 2 3 6 chunks +7 lines, -7 lines 0 comments Download
M ui/aura/client/cursor_client.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M ui/aura/test/test_cursor_client.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/test/test_cursor_client.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M ui/views/corewm/cursor_manager.h View 1 2 3 4 3 chunks +21 lines, -9 lines 0 comments Download
M ui/views/corewm/cursor_manager.cc View 1 2 3 4 8 chunks +36 lines, -30 lines 0 comments Download
M ui/views/corewm/cursor_manager_unittest.cc View 1 2 3 4 12 chunks +117 lines, -23 lines 0 comments Download
M ui/views/corewm/native_cursor_manager_delegate.h View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_cursor_manager.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_cursor_manager.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
tdanderson
Scott^2, can you please take a look? I will land the changes to DesktopNativeCursorManager in ...
7 years ago (2013-12-05 00:09:08 UTC) #1
tdanderson
The follow-up patch to this one is: https://codereview.chromium.org/100173003/
7 years ago (2013-12-05 01:04:44 UTC) #2
sky
https://codereview.chromium.org/92413002/diff/60001/ui/aura/test/test_cursor_client.cc File ui/aura/test/test_cursor_client.cc (right): https://codereview.chromium.org/92413002/diff/60001/ui/aura/test/test_cursor_client.cc#newcode54 ui/aura/test/test_cursor_client.cc:54: return 0.f; Don't we want 1 here? https://codereview.chromium.org/92413002/diff/60001/ui/views/corewm/cursor_manager.cc File ...
7 years ago (2013-12-05 01:32:42 UTC) #3
oshima
Do we create multiple cursor_managers + native_cursor_managers for each host windows on desktop? If so, ...
7 years ago (2013-12-05 19:29:06 UTC) #4
tdanderson
On 2013/12/05 19:29:06, oshima wrote: > Do we create multiple cursor_managers + native_cursor_managers for each ...
7 years ago (2013-12-05 19:49:48 UTC) #5
oshima
On 2013/12/05 19:49:48, tdanderson wrote: > On 2013/12/05 19:29:06, oshima wrote: > > Do we ...
7 years ago (2013-12-05 21:26:16 UTC) #6
tdanderson
On 2013/12/05 21:26:16, oshima wrote: > On 2013/12/05 19:49:48, tdanderson wrote: > > On 2013/12/05 ...
7 years ago (2013-12-05 23:05:55 UTC) #7
tdanderson
Review comments addressed in Patch Set 5. +erg@, who may have an opinion on the ...
7 years ago (2013-12-05 23:07:40 UTC) #8
oshima
On 2013/12/05 19:49:48, tdanderson wrote: > On 2013/12/05 19:29:06, oshima wrote: > > Do we ...
7 years ago (2013-12-05 23:26:58 UTC) #9
oshima
On 2013/12/05 23:26:58, oshima wrote: > On 2013/12/05 19:49:48, tdanderson wrote: > > On 2013/12/05 ...
7 years ago (2013-12-05 23:28:35 UTC) #10
tdanderson
On 2013/12/05 23:28:35, oshima wrote: > On 2013/12/05 23:26:58, oshima wrote: > > On 2013/12/05 ...
7 years ago (2013-12-06 01:04:34 UTC) #11
tdanderson
7 years ago (2013-12-10 18:43:35 UTC) #12
Closing this issue. See https://codereview.chromium.org/111043002/ for the new
approach to solving this problem.

Powered by Google App Engine
This is Rietveld 408576698