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

Issue 10982040: Fix mouse lock on chromeos (Closed)

Created:
8 years, 2 months ago by oshima
Modified:
8 years, 2 months ago
Reviewers:
scheib, DaveMoore, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Fix mouse lock on chromeos * CompoundEventFilter should show cursor only if the cursor was hidden by this event filter. * CompoundEventFilter shouldn't try to hide if it's already hidden by someone else. * It no longer needs set_update_cursor_visibility. * There is one edge case where it leaves cursor visible. Cursor is hidden by the CompoundEventFilter, then again hidden by mouse lock. I changed RWHVA to hide the cursor if it's visible when mouse is moved. BUG=152319 TEST=updated test case. also tested manually: see bug for repro step. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158845

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -21 lines) Patch
M ash/magnifier/magnification_controller.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/wm/power_button_controller.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M ash/wm/window_manager_unittest.cc View 3 chunks +12 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M ui/aura/shared/compound_event_filter.h View 1 2 3 3 chunks +7 lines, -8 lines 0 comments Download
M ui/aura/shared/compound_event_filter.cc View 2 chunks +12 lines, -4 lines 0 comments Download
M ui/aura/shared/compound_event_filter_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
oshima
I looked into possibility to lock in ShowCursor, but it looked risky to me (especially ...
8 years, 2 months ago (2012-09-26 08:47:20 UTC) #1
sky
LGTM http://codereview.chromium.org/10982040/diff/11002/ui/aura/shared/compound_event_filter.h File ui/aura/shared/compound_event_filter.h (right): http://codereview.chromium.org/10982040/diff/11002/ui/aura/shared/compound_event_filter.h#newcode61 ui/aura/shared/compound_event_filter.h:61: // |update_cursor_visibility_| is true. Update comment.
8 years, 2 months ago (2012-09-26 13:42:03 UTC) #2
oshima
http://codereview.chromium.org/10982040/diff/11002/ui/aura/shared/compound_event_filter.h File ui/aura/shared/compound_event_filter.h (right): http://codereview.chromium.org/10982040/diff/11002/ui/aura/shared/compound_event_filter.h#newcode61 ui/aura/shared/compound_event_filter.h:61: // |update_cursor_visibility_| is true. On 2012/09/26 13:42:04, sky wrote: ...
8 years, 2 months ago (2012-09-26 15:18:00 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/10982040/12001
8 years, 2 months ago (2012-09-26 15:18:10 UTC) #4
scheib
Thanks for the quick fix. Do you think there is a chance of flicker when ...
8 years, 2 months ago (2012-09-26 15:54:58 UTC) #5
oshima
On 2012/09/26 15:54:58, scheib wrote: > Thanks for the quick fix. Do you think there ...
8 years, 2 months ago (2012-09-26 16:23:54 UTC) #6
commit-bot: I haz the power
8 years, 2 months ago (2012-09-26 19:09:59 UTC) #7
Change committed as 158845

Powered by Google App Engine
This is Rietveld 408576698