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

Issue 143303006: Do not set the last mouse location from synthesized event (Closed)

Created:
6 years, 10 months ago by oshima
Modified:
6 years, 10 months ago
Reviewers:
sadrul
CC:
chromium-reviews, ben+aura_chromium.org, kalyank, hshi1
Visibility:
Public.

Description

Do not set the last mouse location from synthesized event. The last mouse location should be the updated only by real event because it should point to the real mouse point and synthesized enter/leave may not contain the valid point. minor: remove unnecessary cast. BUG=None TEST=TBD. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251291

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -5 lines) Patch
M ui/aura/root_window.cc View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M ui/aura/root_window_unittest.cc View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M ui/aura/test/event_generator.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
oshima
I'll add test if you're ok with this change. https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc#newcode405 ui/aura/root_window.cc:405: ...
6 years, 10 months ago (2014-02-11 19:43:38 UTC) #1
sadrul
https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc#newcode405 ui/aura/root_window.cc:405: } On 2014/02/11 19:43:38, oshima wrote: > This was ...
6 years, 10 months ago (2014-02-11 21:26:20 UTC) #2
oshima
On 2014/02/11 21:26:20, sadrul wrote: > https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc > File ui/aura/root_window.cc (right): > > https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc#newcode405 > ...
6 years, 10 months ago (2014-02-11 22:01:12 UTC) #3
oshima
On 2014/02/11 22:01:12, oshima wrote: > On 2014/02/11 21:26:20, sadrul wrote: > > https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc > ...
6 years, 10 months ago (2014-02-11 22:07:08 UTC) #4
sadrul
On 2014/02/11 22:01:12, oshima wrote: > On 2014/02/11 21:26:20, sadrul wrote: > > https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc > ...
6 years, 10 months ago (2014-02-13 04:38:51 UTC) #5
sadrul
https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc#newcode819 ui/aura/root_window.cc:819: if (!(event->flags() & ui::EF_IS_SYNTHESIZED)) { Merge the two if's?
6 years, 10 months ago (2014-02-13 04:38:59 UTC) #6
oshima
added test. PTAL. https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://codereview.chromium.org/143303006/diff/20001/ui/aura/root_window.cc#newcode819 ui/aura/root_window.cc:819: if (!(event->flags() & ui::EF_IS_SYNTHESIZED)) { On ...
6 years, 10 months ago (2014-02-13 15:25:31 UTC) #7
sadrul
lgtm https://codereview.chromium.org/143303006/diff/140001/ui/aura/root_window_unittest.cc File ui/aura/root_window_unittest.cc (right): https://codereview.chromium.org/143303006/diff/140001/ui/aura/root_window_unittest.cc#newcode1759 ui/aura/root_window_unittest.cc:1759: // Synthesized event should not update the moust ...
6 years, 10 months ago (2014-02-13 15:30:26 UTC) #8
oshima
https://codereview.chromium.org/143303006/diff/140001/ui/aura/root_window_unittest.cc File ui/aura/root_window_unittest.cc (right): https://codereview.chromium.org/143303006/diff/140001/ui/aura/root_window_unittest.cc#newcode1759 ui/aura/root_window_unittest.cc:1759: // Synthesized event should not update the moust location. ...
6 years, 10 months ago (2014-02-13 16:48:17 UTC) #9
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 10 months ago (2014-02-13 16:48:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/143303006/180001
6 years, 10 months ago (2014-02-13 16:48:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/143303006/180001
6 years, 10 months ago (2014-02-13 19:48:54 UTC) #12
commit-bot: I haz the power
6 years, 10 months ago (2014-02-14 13:44:49 UTC) #13
Message was sent while issue was closed.
Change committed as 251291

Powered by Google App Engine
This is Rietveld 408576698