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

Issue 2932563002: Implement cursor changing on Mushrome (Closed)

Created:
3 years, 6 months ago by Elliot Glaysher
Modified:
3 years, 6 months ago
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement cursor changing on Mushrome. This splits AshNativeCursorManager into an interface and creates two implementations: one for classic ash (the original code), and one for mushrome. The new mushrome implementation forwards to the mus window manager interface instead of the individual windows due to how mus gets cursors only from windows which have event handlers. This leaves some features unimplemented, such as cursor sets, but implements the core interface. BUG=729798, 734807, 734809 Review-Url: https://codereview.chromium.org/2932563002 Cr-Commit-Position: refs/heads/master@{#481278} Committed: https://chromium.googlesource.com/chromium/src/+/36cfb953ea04dac15159b516cd9ce741c6b7384b

Patch Set 1 #

Patch Set 2 : Does this fix the tests? #

Patch Set 3 : Does not changing the size of the cursor window resolve this on the bots? #

Patch Set 4 : Change the timing of when we create the mirror. #

Patch Set 5 : General patch cleanup #

Patch Set 6 : Merge with ToT to hopefully fix cq #

Patch Set 7 : Remove last NOTIMPLEMENTED for this patch #

Total comments: 15

Patch Set 8 : jamescook comments #

Patch Set 9 : why would you put that there #

Total comments: 12

Patch Set 10 : jamescook comments #

Total comments: 4

Patch Set 11 : Experimentally remove the CreateSoftwareMirroringDisplay change #

Patch Set 12 : Move the closing back after showing its still failing + tests #

Patch Set 13 : Also whitelist most of 734809 #

Patch Set 14 : Merge with sky's rearrangement of ash_unittests_mus.filter #

Patch Set 15 : One more test that got lost in the merge #

Patch Set 16 : Remove even more tests from the blacklist. #

Patch Set 17 : Attempting oshima's fix. #

Patch Set 18 : oshima patch take 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -688 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -3 lines 0 comments Download
M ash/display/mirror_window_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +17 lines, -4 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +11 lines, -7 lines 0 comments Download
M ash/test/cursor_manager_test_api.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -7 lines 0 comments Download
M ash/test/shell_test_api.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M ash/test/shell_test_api.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/ash_native_cursor_manager.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -72 lines 0 comments Download
M ash/wm/ash_native_cursor_manager.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -162 lines 0 comments Download
D ash/wm/ash_native_cursor_manager_interactive_uitest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -78 lines 0 comments Download
D ash/wm/ash_native_cursor_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -204 lines 0 comments Download
A ash/wm/native_cursor_manager_ash.h View 1 2 3 4 5 6 7 8 9 1 chunk +42 lines, -0 lines 0 comments Download
A + ash/wm/native_cursor_manager_ash_classic.h View 1 2 3 4 5 6 7 3 chunks +14 lines, -24 lines 0 comments Download
A + ash/wm/native_cursor_manager_ash_classic.cc View 1 2 3 4 5 6 7 6 chunks +18 lines, -10 lines 0 comments Download
A + ash/wm/native_cursor_manager_ash_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -3 lines 0 comments Download
A ash/wm/native_cursor_manager_ash_mus.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +67 lines, -0 lines 0 comments Download
A + ash/wm/native_cursor_manager_ash_mus.cc View 1 2 3 4 5 6 7 7 chunks +82 lines, -42 lines 0 comments Download
A + ash/wm/native_cursor_manager_ash_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +9 lines, -9 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/browser/shell_desktop_controller_aura.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M testing/buildbot/filters/ash_unittests_mash.filter View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -6 lines 0 comments Download
M testing/buildbot/filters/ash_unittests_mus.filter View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -49 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_cursor_manager.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 85 (68 generated)
Elliot Glaysher
3 years, 6 months ago (2017-06-12 19:24:41 UTC) #24
James Cook
https://codereview.chromium.org/2932563002/diff/120001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2932563002/diff/120001/ash/BUILD.gn#newcode632 ash/BUILD.gn:632: "wm/classic_ash_native_cursor_manager.cc", I would go with native_cursor_manager_ash_classic and native_cursor_manager_ash_mus[hrome], or ...
3 years, 6 months ago (2017-06-12 20:17:24 UTC) #27
Elliot Glaysher
ptal https://codereview.chromium.org/2932563002/diff/120001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2932563002/diff/120001/ash/BUILD.gn#newcode632 ash/BUILD.gn:632: "wm/classic_ash_native_cursor_manager.cc", On 2017/06/12 20:17:24, James Cook wrote: > ...
3 years, 6 months ago (2017-06-12 23:18:46 UTC) #32
James Cook
LGTM with nits. Nice patch. I didn't realize we already had test coverage via NativeCursorManagerAsh ...
3 years, 6 months ago (2017-06-13 00:49:27 UTC) #35
Elliot Glaysher
https://codereview.chromium.org/2932563002/diff/160001/ash/test/shell_test_api.h File ash/test/shell_test_api.h (right): https://codereview.chromium.org/2932563002/diff/160001/ash/test/shell_test_api.h#newcode33 ash/test/shell_test_api.h:33: NativeCursorManagerAsh* ash_native_cursor_manager(); On 2017/06/13 00:49:26, James Cook wrote: > ...
3 years, 6 months ago (2017-06-13 18:05:45 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2932563002/180001
3 years, 6 months ago (2017-06-13 18:06:20 UTC) #39
Elliot Glaysher
+reillyg: //extensions comment change. +sadrul: //ui
3 years, 6 months ago (2017-06-13 18:09:14 UTC) #42
Reilly Grant (use Gerrit)
lgtm
3 years, 6 months ago (2017-06-13 18:11:04 UTC) #43
sadrul
+oshima@ for ui/display owner. stamp lgtm for views https://codereview.chromium.org/2932563002/diff/180001/ui/display/manager/display_manager.cc File ui/display/manager/display_manager.cc (right): https://codereview.chromium.org/2932563002/diff/180001/ui/display/manager/display_manager.cc#newcode705 ui/display/manager/display_manager.cc:705: CreateSoftwareMirroringDisplayInfo(&new_display_info_list); ...
3 years, 6 months ago (2017-06-14 03:03:57 UTC) #45
Elliot Glaysher
ping oshima https://codereview.chromium.org/2932563002/diff/180001/ui/display/manager/display_manager.cc File ui/display/manager/display_manager.cc (right): https://codereview.chromium.org/2932563002/diff/180001/ui/display/manager/display_manager.cc#newcode705 ui/display/manager/display_manager.cc:705: CreateSoftwareMirroringDisplayInfo(&new_display_info_list); On 2017/06/14 03:03:56, sadrul wrote: > ...
3 years, 6 months ago (2017-06-15 17:35:07 UTC) #46
oshima
https://codereview.chromium.org/2932563002/diff/180001/ui/display/manager/display_manager.cc File ui/display/manager/display_manager.cc (right): https://codereview.chromium.org/2932563002/diff/180001/ui/display/manager/display_manager.cc#newcode705 ui/display/manager/display_manager.cc:705: CreateSoftwareMirroringDisplayInfo(&new_display_info_list); On 2017/06/15 17:35:07, Elliot Glaysher wrote: > On ...
3 years, 6 months ago (2017-06-15 18:16:18 UTC) #47
oshima
https://codereview.chromium.org/2932563002/diff/180001/ui/display/manager/display_manager.cc File ui/display/manager/display_manager.cc (right): https://codereview.chromium.org/2932563002/diff/180001/ui/display/manager/display_manager.cc#newcode705 ui/display/manager/display_manager.cc:705: CreateSoftwareMirroringDisplayInfo(&new_display_info_list); On 2017/06/15 17:35:07, Elliot Glaysher wrote: > On ...
3 years, 6 months ago (2017-06-19 19:17:55 UTC) #48
Elliot Glaysher
On 2017/06/19 19:17:55, oshima wrote: > https://codereview.chromium.org/2932563002/diff/180001/ui/display/manager/display_manager.cc > File ui/display/manager/display_manager.cc (right): > > https://codereview.chromium.org/2932563002/diff/180001/ui/display/manager/display_manager.cc#newcode705 > ...
3 years, 6 months ago (2017-06-19 20:35:59 UTC) #51
Elliot Glaysher
oshima: i've applied your fix to mirror_window_controller.cc and it's passed the linux_chromium_chromeos_ozone_rel_ng bot. ptal.
3 years, 6 months ago (2017-06-21 17:53:42 UTC) #78
oshima
lgtm
3 years, 6 months ago (2017-06-21 18:06:11 UTC) #79
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2932563002/340001
3 years, 6 months ago (2017-06-21 18:07:21 UTC) #82
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 19:42:05 UTC) #85
Message was sent while issue was closed.
Committed patchset #18 (id:340001) as
https://chromium.googlesource.com/chromium/src/+/36cfb953ea04dac15159b516cd9c...

Powered by Google App Engine
This is Rietveld 408576698