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

Issue 82463002: Invoke cursor-hiding logic on touch for Windows (Closed)

Created:
7 years, 1 month ago by tdanderson
Modified:
7 years ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, ben+views_chromium.org, ben+corewm_chromium.org, scottmg
Visibility:
Public.

Description

Invoke cursor-hiding logic on touch for Windows Continue to invoke cursor-hiding logic on touch for Windows even though the OS hides the cursor for us. The reason is that this code path is needed in order to call RenderWidgetHostViewAura:: NotifyRendererOfCursorVisibilityState() in order for the renderer to know to suppress generation of synthetic mousemove events while touch scrolling. This avoids unwanted hover effects from being invoked when the cursor is not visible. To avoid regressions in behavior (such as the one mentioned in https://codereview.chromium.org/56053004), make the cursor state global among all root windows. This is done in https://codereview.chromium.org/111043002/. BUG=322250 TEST=To be added later (crbug.com/328549) R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240976

Patch Set 1 #

Total comments: 3

Patch Set 2 : storing a static vector of CursorManagers in CursorManager #

Patch Set 3 : reset cursor state before each test #

Patch Set 4 : Don't update cursor state on synthetic mouse events #

Patch Set 5 : Updated patch #

Total comments: 1

Patch Set 6 : Comments and test ifdefs updated #

Patch Set 7 : Fixed ifdef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -11 lines) Patch
M ash/wm/window_manager_unittest.cc View 1 2 3 4 5 3 chunks +8 lines, -4 lines 0 comments Download
M ui/views/corewm/compound_event_filter.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M ui/views/corewm/compound_event_filter_unittest.cc View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
tdanderson
Scott, can you please take a look at my comment in DesktopRootWindowHostWin? https://codereview.chromium.org/82463002/diff/1/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc File ui/views/widget/desktop_aura/desktop_root_window_host_win.cc ...
7 years, 1 month ago (2013-11-22 02:03:35 UTC) #1
tdanderson
https://codereview.chromium.org/82463002/diff/1/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc File ui/views/widget/desktop_aura/desktop_root_window_host_win.cc (right): https://codereview.chromium.org/82463002/diff/1/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc#newcode733 ui/views/widget/desktop_aura/desktop_root_window_host_win.cc:733: ::ShowCursor(true); On 2013/11/22 02:03:36, tdanderson wrote: > Adding this ...
7 years, 1 month ago (2013-11-22 02:27:03 UTC) #2
sky
Seems to me the bug is in the code assuming there is a single CursorClient. ...
7 years, 1 month ago (2013-11-22 14:45:37 UTC) #3
tdanderson
@sky, can you please comment on the approach in Patch Set 2? (I will add ...
7 years ago (2013-11-25 21:22:34 UTC) #4
scottmg
On 2013/11/25 21:22:34, tdanderson wrote: > @sky, can you please comment on the approach in ...
7 years ago (2013-11-27 17:47:32 UTC) #5
tdanderson
On 2013/11/27 17:47:32, scottmg wrote: > On 2013/11/25 21:22:34, tdanderson wrote: > > @sky, can ...
7 years ago (2013-11-27 18:30:18 UTC) #6
sky
Any reason why that is? On Wed, Nov 27, 2013 at 10:30 AM, <tdanderson@chromium.org> wrote: ...
7 years ago (2013-12-02 15:46:07 UTC) #7
tdanderson
@sky and @scottmg, Note that for the global cursor state I am going with the ...
7 years ago (2013-12-03 00:13:30 UTC) #8
tdanderson
@sky, can you PTAL? This is the follow-up to https://codereview.chromium.org/111043002/.
7 years ago (2013-12-13 21:51:51 UTC) #9
tdanderson
On 2013/12/13 21:51:51, tdanderson wrote: > @sky, can you PTAL? This is the follow-up to ...
7 years ago (2013-12-13 22:24:39 UTC) #10
sky
https://codereview.chromium.org/82463002/diff/200001/ui/views/corewm/compound_event_filter.cc File ui/views/corewm/compound_event_filter.cc (right): https://codereview.chromium.org/82463002/diff/200001/ui/views/corewm/compound_event_filter.cc#newcode74 ui/views/corewm/compound_event_filter.cc:74: bool ShouldHideCursorOnTouch() { Is this function even needed anymore? ...
7 years ago (2013-12-13 22:35:24 UTC) #11
tdanderson
It is needed because of Linux Aura. Removing this function introduces some bugs, and since ...
7 years ago (2013-12-13 22:52:46 UTC) #12
sky
LGTM - but make sure you reinclude the appropriate set of tests for windows, I'm ...
7 years ago (2013-12-13 23:18:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/82463002/220001
7 years ago (2013-12-15 19:03:21 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204399
7 years ago (2013-12-15 19:39:35 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/82463002/220001
7 years ago (2013-12-15 19:42:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/82463002/240001
7 years ago (2013-12-15 20:21:33 UTC) #17
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=202723
7 years ago (2013-12-15 21:23:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/82463002/240001
7 years ago (2013-12-15 21:24:36 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204429
7 years ago (2013-12-15 22:57:56 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/82463002/240001
7 years ago (2013-12-15 23:04:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/82463002/240001
7 years ago (2013-12-15 23:04:34 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204451
7 years ago (2013-12-16 00:49:47 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/82463002/240001
7 years ago (2013-12-16 00:52:50 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204484
7 years ago (2013-12-16 02:31:27 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/82463002/240001
7 years ago (2013-12-16 02:33:41 UTC) #26
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204513
7 years ago (2013-12-16 04:08:36 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/82463002/240001
7 years ago (2013-12-16 16:03:56 UTC) #28
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204831
7 years ago (2013-12-16 17:15:22 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/82463002/240001
7 years ago (2013-12-16 17:29:30 UTC) #30
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204932
7 years ago (2013-12-16 19:18:05 UTC) #31
tdanderson
7 years ago (2013-12-16 19:44:09 UTC) #32
Message was sent while issue was closed.
Committed patchset #7 manually as r240976 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698