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

Issue 2657283003: mash: make Env::last_mouse_location() accurate for Mus (Closed)

Created:
3 years, 10 months ago by sky
Modified:
3 years, 10 months ago
Reviewers:
sadrul
CC:
chromium-reviews, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: make Env::last_mouse_location() accurate for Mus This patch makes last_mouse_location() reflect the location of the current event while processing an event, otherwise calls to WindowTreeClient::GetCursorScreenPoint(). BUG=679402 TEST=none R=sadrul@chromium.org Review-Url: https://codereview.chromium.org/2657283003 Cr-Commit-Position: refs/heads/master@{#447570} Committed: https://chromium.googlesource.com/chromium/src/+/c19010b9bd9c531283b1157ed51a8af22ae665f4

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 2

Patch Set 3 : remove const from test #

Patch Set 4 : tests #

Patch Set 5 : parens #

Patch Set 6 : fix test #

Total comments: 2

Patch Set 7 : const #

Patch Set 8 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -2 lines) Patch
M ui/aura/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/env.h View 1 2 3 4 5 6 4 chunks +8 lines, -2 lines 0 comments Download
M ui/aura/env.cc View 1 2 3 4 5 6 2 chunks +14 lines, -0 lines 0 comments Download
A ui/aura/mus/mus_mouse_location_updater.h View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A ui/aura/mus/mus_mouse_location_updater.cc View 1 2 3 4 1 chunk +67 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.h View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_helper.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/test/env_test_helper.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/window_event_dispatcher.h View 3 chunks +4 lines, -0 lines 0 comments Download
M ui/aura/window_event_dispatcher.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M ui/aura/window_event_dispatcher_unittest.cc View 1 2 3 2 chunks +136 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (23 generated)
sky
I need to write a test for this, and likely rename Env::last_mouse_location(), GetLastMouseLocation(), but I ...
3 years, 10 months ago (2017-01-27 16:10:04 UTC) #1
sadrul
I assume this is because the read in WindowTreeClient::GetCursorScreenPoint() is a little expensive? I can't ...
3 years, 10 months ago (2017-01-27 21:08:36 UTC) #10
sadrul
On 2017/01/27 21:08:36, sadrul wrote: > I assume this is because the read in WindowTreeClient::GetCursorScreenPoint() ...
3 years, 10 months ago (2017-01-27 21:24:53 UTC) #11
sky
I considered not doing this, and always calling through to WindowTreeClient, but then that seems ...
3 years, 10 months ago (2017-01-31 20:25:01 UTC) #12
sadrul
lgtm https://codereview.chromium.org/2657283003/diff/100001/ui/aura/env.h File ui/aura/env.h (right): https://codereview.chromium.org/2657283003/diff/100001/ui/aura/env.h#newcode78 ui/aura/env.h:78: const gfx::Point& last_mouse_location(); Alternatively, maybe we could keep ...
3 years, 10 months ago (2017-02-01 17:30:14 UTC) #24
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/2657283003/140001
3 years, 10 months ago (2017-02-01 17:50:43 UTC) #27
sky
https://codereview.chromium.org/2657283003/diff/100001/ui/aura/env.h File ui/aura/env.h (right): https://codereview.chromium.org/2657283003/diff/100001/ui/aura/env.h#newcode78 ui/aura/env.h:78: const gfx::Point& last_mouse_location(); On 2017/02/01 17:30:14, sadrul wrote: > ...
3 years, 10 months ago (2017-02-01 17:58:09 UTC) #28
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 19:18:11 UTC) #31
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/c19010b9bd9c531283b1157ed51a...

Powered by Google App Engine
This is Rietveld 408576698