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

Issue 151563004: Make the member |is_cursor_visible_| in DesktopWindowTreeHostWin static. (Closed)

Created:
6 years, 10 months ago by tdanderson
Modified:
6 years, 10 months ago
Reviewers:
ananta, sky
CC:
chromium-reviews, tfarina, ben+views_chromium.org
Visibility:
Public.

Description

Make the member |is_cursor_visible_| in DesktopWindowTreeHostWin static. On Windows we can have multiple root windows and the implementation of ::ShowCursor() is based on a counter, so making this member static ensures that ::ShowCursor() is always called exactly once whenever the cursor visibility state changes. This prevents an incorrectly hidden (or incorrectly shown) cursor because the number of calls to ::ShowCursor() is no longer dependent on the number of instantiated root windows at the time when a request to change the cursor visibility is made. BUG=317496 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249310

Patch Set 1 #

Patch Set 2 : re-upload #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M ui/views/widget/desktop_aura/desktop_root_window_host_win.h View 1 chunk +5 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_win.cc View 2 chunks +3 lines, -2 lines 2 comments Download

Messages

Total messages: 21 (0 generated)
tdanderson
Can you please take a look? If this approach looks good to you, I think ...
6 years, 10 months ago (2014-01-31 21:26:27 UTC) #1
sky
https://codereview.chromium.org/151563004/diff/40001/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/151563004/diff/40001/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc#newcode558 ui/views/widget/desktop_aura/desktop_root_window_host_win.cc:558: if (is_cursor_visible_ == show) What if the destructor is ...
6 years, 10 months ago (2014-02-03 20:57:21 UTC) #2
tdanderson
https://codereview.chromium.org/151563004/diff/40001/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/151563004/diff/40001/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc#newcode558 ui/views/widget/desktop_aura/desktop_root_window_host_win.cc:558: if (is_cursor_visible_ == show) On 2014/02/03 20:57:21, sky wrote: ...
6 years, 10 months ago (2014-02-03 22:41:01 UTC) #3
sky
Lets say you have two DRWHWs, A and B. OnCursorVisibiiltyChanged(false) on B is invoked, which ...
6 years, 10 months ago (2014-02-04 00:47:44 UTC) #4
tdanderson
On 2014/02/04 00:47:44, sky wrote: > Lets say you have two DRWHWs, A and B. ...
6 years, 10 months ago (2014-02-04 19:00:58 UTC) #5
sky
Ok, LGTM
6 years, 10 months ago (2014-02-04 19:02:35 UTC) #6
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 10 months ago (2014-02-04 19:12:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/151563004/40001
6 years, 10 months ago (2014-02-04 19:15:25 UTC) #8
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=221048
6 years, 10 months ago (2014-02-04 21:14:39 UTC) #9
tdanderson
The CQ bit was unchecked by tdanderson@chromium.org
6 years, 10 months ago (2014-02-04 22:22:27 UTC) #10
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 10 months ago (2014-02-04 22:22:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/151563004/40001
6 years, 10 months ago (2014-02-04 22:32:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/151563004/40001
6 years, 10 months ago (2014-02-05 01:10:53 UTC) #13
tdanderson
The CQ bit was unchecked by tdanderson@chromium.org
6 years, 10 months ago (2014-02-05 03:20:01 UTC) #14
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 10 months ago (2014-02-05 03:20:06 UTC) #15
tdanderson
The CQ bit was unchecked by tdanderson@chromium.org
6 years, 10 months ago (2014-02-05 17:52:31 UTC) #16
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 10 months ago (2014-02-05 17:52:39 UTC) #17
tdanderson
The CQ bit was unchecked by tdanderson@chromium.org
6 years, 10 months ago (2014-02-06 01:16:52 UTC) #18
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 10 months ago (2014-02-06 01:16:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/151563004/40001
6 years, 10 months ago (2014-02-06 01:23:25 UTC) #20
commit-bot: I haz the power
6 years, 10 months ago (2014-02-06 09:29:49 UTC) #21
Message was sent while issue was closed.
Change committed as 249310

Powered by Google App Engine
This is Rietveld 408576698