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

Issue 754013007: Fix the wrong relative coordinates from EventDispatch (Closed)

Created:
6 years ago by Miyoung Shin
Modified:
5 years, 11 months ago
Reviewers:
Avi (use Gerrit), sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the wrong relative coordinates from EventDispatch The problem is that the event's coordrinates are moved to the negative location when testing MouseLeaveTest.MouseDownOnBrowserCaption in interactive_ui_tests. Becasue it tries to calculate the relative coordinates one more in WindowEventDispatcher::DispatchMouseEnterOrExit if target window is null. We should use the target window from PreDispatchMouseEvent to prevent that window is null. BUG=409601 R=sky@chromium.org TEST=WindowEventDispatcherTest.MouseEventWithoutTargetWindow Committed: https://crrev.com/50bcf1b20f123424d2a176260b61881c55c19dc7 Cr-Commit-Position: refs/heads/master@{#310445}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 10

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -15 lines) Patch
M ui/aura/window_event_dispatcher.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -6 lines 0 comments Download
M ui/aura/window_event_dispatcher.cc View 1 2 3 4 5 6 7 7 chunks +11 lines, -8 lines 0 comments Download
M ui/aura/window_event_dispatcher_unittest.cc View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
M ui/aura/window_tree_host.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 48 (6 generated)
Miyoung Shin
avi@, PTAL
6 years ago (2014-11-25 01:58:12 UTC) #2
Avi (use Gerrit)
lgtm
6 years ago (2014-11-25 04:51:39 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/754013007/1
6 years ago (2014-11-25 05:02:40 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/26461)
6 years ago (2014-11-25 05:06:40 UTC) #7
Miyoung Shin
On 2014/11/25 05:06:40, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years ago (2014-11-25 05:14:55 UTC) #8
Avi (use Gerrit)
On 2014/11/25 05:14:55, Miyoung Shin wrote: > On 2014/11/25 05:06:40, I haz the power (commit-bot) ...
6 years ago (2014-11-25 05:24:55 UTC) #10
Miyoung Shin(g)
On 2014/11/25 05:24:55, Avi wrote: > On 2014/11/25 05:14:55, Miyoung Shin wrote: > > On ...
6 years ago (2014-11-25 05:31:45 UTC) #11
Miyoung Shin
sky@, PTAL.
6 years ago (2014-12-01 06:55:36 UTC) #12
sky
https://codereview.chromium.org/754013007/diff/1/chrome/browser/mouseleave_browsertest.cc File chrome/browser/mouseleave_browsertest.cc (right): https://codereview.chromium.org/754013007/diff/1/chrome/browser/mouseleave_browsertest.cc#newcode32 chrome/browser/mouseleave_browsertest.cc:32: tab_view_bounds.y() + 200); I'm not familiar with this test ...
6 years ago (2014-12-01 17:28:28 UTC) #13
Miyoung Shin
On 2014/12/01 17:28:28, sky wrote: > https://codereview.chromium.org/754013007/diff/1/chrome/browser/mouseleave_browsertest.cc > File chrome/browser/mouseleave_browsertest.cc (right): > > https://codereview.chromium.org/754013007/diff/1/chrome/browser/mouseleave_browsertest.cc#newcode32 > ...
6 years ago (2014-12-02 02:07:20 UTC) #14
sky
I'm confused then. tab->GetContainerBounds() should the return coordinates in the content area. So the +10 ...
6 years ago (2014-12-02 15:50:30 UTC) #15
Miyoung Shin
On 2014/12/02 15:50:30, sky wrote: > I'm confused then. tab->GetContainerBounds() should the return > coordinates ...
6 years ago (2014-12-02 23:31:23 UTC) #16
sky
Seems to me you don't have a good grasp on the bug and are working ...
6 years ago (2014-12-02 23:46:54 UTC) #17
Miyoung Shin
On 2014/12/02 23:46:54, sky wrote: > Seems to me you don't have a good grasp ...
6 years ago (2014-12-03 01:25:56 UTC) #18
Miyoung Shin
On 2014/12/03 01:25:56, Miyoung Shin wrote: > On 2014/12/02 23:46:54, sky wrote: > > Seems ...
6 years ago (2014-12-04 01:44:13 UTC) #19
sky
What are the coordinates of the mouse at the time it enters HWNDMessageHandler? On Wed, ...
6 years ago (2014-12-04 04:24:43 UTC) #20
Miyoung Shin
On 2014/12/04 04:24:43, sky wrote: > What are the coordinates of the mouse at the ...
6 years ago (2014-12-04 06:06:25 UTC) #21
sky
On Wed, Dec 3, 2014 at 10:06 PM, <myid.shin@samsung.com> wrote: > On 2014/12/04 04:24:43, sky ...
6 years ago (2014-12-04 15:58:29 UTC) #22
Miyoung Shin
On 2014/12/04 15:58:29, sky wrote: > On Wed, Dec 3, 2014 at 10:06 PM, <mailto:myid.shin@samsung.com> ...
6 years ago (2014-12-04 22:03:58 UTC) #23
sky
There's a switch to not see black, --enable-pixel-output-in-tests . On Thu, Dec 4, 2014 at ...
6 years ago (2014-12-05 00:02:44 UTC) #24
Miyoung Shin
On 2014/12/05 00:02:44, sky wrote: > There's a switch to not see black, --enable-pixel-output-in-tests . ...
6 years ago (2014-12-05 13:01:27 UTC) #25
Miyoung Shin
On 2014/12/05 13:01:27, Miyoung Shin wrote: > On 2014/12/05 00:02:44, sky wrote: > > There's ...
6 years ago (2014-12-11 15:58:53 UTC) #26
sky
On 2014/12/04 01:44:13, Miyoung Shin wrote: > On 2014/12/03 01:25:56, Miyoung Shin wrote: > > ...
6 years ago (2014-12-11 16:44:40 UTC) #27
Miyoung Shin
sky@, I've uploaded the patch, PTAL.
6 years ago (2014-12-14 07:38:47 UTC) #28
sky
Please add test coverage.
6 years ago (2014-12-15 16:58:41 UTC) #29
Miyoung Shin
On 2014/12/15 16:58:41, sky wrote: > Please add test coverage. Do you mean to add ...
6 years ago (2014-12-16 02:30:37 UTC) #30
sky
Yes. On Mon, Dec 15, 2014 at 6:30 PM, <myid.shin@samsung.com> wrote: > On 2014/12/15 16:58:41, ...
6 years ago (2014-12-16 03:48:54 UTC) #31
Miyoung Shin
On 2014/12/16 03:48:54, sky wrote: > Yes. > > On Mon, Dec 15, 2014 at ...
6 years ago (2014-12-16 15:45:14 UTC) #32
sky
Sorry, by test I meant a test in aura exercising the aura change. You shouldn't ...
6 years ago (2014-12-16 16:45:05 UTC) #33
Miyoung Shin
On 2014/12/16 16:45:05, sky wrote: > Sorry, by test I meant a test in aura ...
6 years ago (2014-12-18 15:13:08 UTC) #34
sky
https://codereview.chromium.org/754013007/diff/100001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/754013007/diff/100001/ui/aura/window_event_dispatcher.cc#newcode270 ui/aura/window_event_dispatcher.cc:270: if (event.target()) Why do we need both the supplied ...
6 years ago (2014-12-18 20:29:29 UTC) #35
Miyoung Shin
https://codereview.chromium.org/754013007/diff/100001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/754013007/diff/100001/ui/aura/window_event_dispatcher.cc#newcode270 ui/aura/window_event_dispatcher.cc:270: if (event.target()) On 2014/12/18 20:29:29, sky wrote: > Why ...
6 years ago (2014-12-19 14:39:43 UTC) #36
Miyoung Shin
sky@, I've upload the patch to apply your comment. PTAL
6 years ago (2014-12-19 14:40:17 UTC) #37
Miyoung Shin
On 2014/12/19 14:40:17, Miyoung Shin wrote: > sky@, > I've upload the patch to apply ...
5 years, 12 months ago (2014-12-28 05:44:22 UTC) #38
sky
https://codereview.chromium.org/754013007/diff/100001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/754013007/diff/100001/ui/aura/window_event_dispatcher.cc#newcode270 ui/aura/window_event_dispatcher.cc:270: if (event.target()) On 2014/12/19 14:39:42, Miyoung Shin wrote: > ...
5 years, 11 months ago (2015-01-05 17:23:03 UTC) #39
Miyoung Shin
https://codereview.chromium.org/754013007/diff/100001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/754013007/diff/100001/ui/aura/window_event_dispatcher.cc#newcode270 ui/aura/window_event_dispatcher.cc:270: if (event.target()) On 2015/01/05 17:23:02, sky wrote: > On ...
5 years, 11 months ago (2015-01-06 13:20:44 UTC) #41
sky
You're right. Incorporate my latest suggestions and I'll approve. https://codereview.chromium.org/754013007/diff/120001/ui/aura/window_event_dispatcher.h File ui/aura/window_event_dispatcher.h (right): https://codereview.chromium.org/754013007/diff/120001/ui/aura/window_event_dispatcher.h#newcode81 ui/aura/window_event_dispatcher.h:81: ...
5 years, 11 months ago (2015-01-06 16:51:30 UTC) #42
Miyoung Shin
I've uploaded the patchset8 and remained the comment for adding target parameter. PTAL. https://codereview.chromium.org/754013007/diff/120001/ui/aura/window_event_dispatcher.h File ...
5 years, 11 months ago (2015-01-07 07:30:48 UTC) #43
sky
LGTM
5 years, 11 months ago (2015-01-07 17:07:10 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/754013007/160001
5 years, 11 months ago (2015-01-08 00:40:15 UTC) #46
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 11 months ago (2015-01-08 02:42:48 UTC) #47
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 02:43:31 UTC) #48
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/50bcf1b20f123424d2a176260b61881c55c19dc7
Cr-Commit-Position: refs/heads/master@{#310445}

Powered by Google App Engine
This is Rietveld 408576698