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

Issue 981393002: Second attempt at fixing pointer lock issues with Windows HiDPI. (Closed)

Created:
5 years, 9 months ago by ananta
Modified:
5 years, 9 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, jdduke+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Second attempt at fixing pointer lock issues with Windows HiDPI. The earlier attempt https://codereview.chromium.org/973123003/ was incorrect. Reverted parts that patch which changed the WebMouseEventBuilder::Build function to convert from DIP to pixels and back. The initial conversion from DIP to pixels was not needed as the values are picked up from the Windows message which gives us these coordinates in pixels. Changes in this patch are as below:- 1. The WebMouseEventBuilder::Build function has been changed to convert the WebMouseEvent::globalX and globalY values to DIP. The other changes in the earlier patch as mentioned above have been reverted. 2. The RenderWidgetHostViewAura::UpdateMouseLockRegion function which executes on Windows was clipping the windows cursor to a rectangle in DIPs. We need to convert this rectangle to pixels before calling the ClipCursor API. This was the main reason for the lock operation not working correctly. 3. I was seeing a DCHECK in the renderer process in the WebViewImpl::pointerLockMouseEvent function as we were sending the mouse leave message. Added code in the CanRendererHandleEvent function in the render_widget_host_view_aura.cc file to not send this message if we are in the mouse locked state. BUG=411634 TEST= The main test case in bug 411634 Committed: https://crrev.com/ef5361d976c30ad91cd9df5fccf4c046295bac0a Cr-Commit-Position: refs/heads/master@{#319791}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added a content unittest WebInputEventBuilderTEst.TestMouseEventScale #

Patch Set 3 : Added the files for the test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -22 lines) Patch
M content/browser/renderer_host/input/web_input_event_builders_win.h View 1 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_builders_win.cc View 1 chunk +6 lines, -15 lines 0 comments Download
A content/browser/renderer_host/input/web_input_event_unittest.cc View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 4 chunks +8 lines, -4 lines 0 comments Download
M content/content_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
ananta
5 years, 9 months ago (2015-03-06 23:45:56 UTC) #2
ananta
5 years, 9 months ago (2015-03-07 00:03:11 UTC) #4
scheib
LGTM
5 years, 9 months ago (2015-03-09 04:40:38 UTC) #5
cpu_(ooo_6.6-7.5)
seems we are going in circles. I might not be the best to review the ...
5 years, 9 months ago (2015-03-09 20:50:07 UTC) #7
scottmg
Sorry, I can't really reason about this either, but with a test that we don't ...
5 years, 9 months ago (2015-03-09 21:33:18 UTC) #8
ananta
https://codereview.chromium.org/981393002/diff/1/content/browser/renderer_host/input/web_input_event_builders_win.cc File content/browser/renderer_host/input/web_input_event_builders_win.cc (right): https://codereview.chromium.org/981393002/diff/1/content/browser/renderer_host/input/web_input_event_builders_win.cc#newcode191 content/browser/renderer_host/input/web_input_event_builders_win.cc:191: DWORD time_ms) { On 2015/03/09 21:33:18, scottmg wrote: > ...
5 years, 9 months ago (2015-03-09 22:55:59 UTC) #9
scottmg
lgtm
5 years, 9 months ago (2015-03-09 23:10:09 UTC) #10
cpu_(ooo_6.6-7.5)
lgtm
5 years, 9 months ago (2015-03-09 23:50:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981393002/40001
5 years, 9 months ago (2015-03-09 23:51:45 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-10 00:24:05 UTC) #16
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/ef5361d976c30ad91cd9df5fccf4c046295bac0a Cr-Commit-Position: refs/heads/master@{#319791}
5 years, 9 months ago (2015-03-10 00:24:52 UTC) #17
Nico
This fails on the DrMemory bots: http://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Unit%20%28DrMemory%29/builds/20991 http://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Unit%20%28DrMemory%20full%29%20%283%29/builds/5674 Looks like the expectations are off by ...
5 years, 9 months ago (2015-03-10 15:42:38 UTC) #19
scottmg
On 2015/03/10 15:42:38, Nico wrote: > This fails on the DrMemory bots: > http://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Unit%20%28DrMemory%29/builds/20991 > ...
5 years, 9 months ago (2015-03-10 16:59:13 UTC) #20
scottmg
On 2015/03/10 16:59:13, scottmg wrote: > On 2015/03/10 15:42:38, Nico wrote: > > This fails ...
5 years, 9 months ago (2015-03-10 17:14:47 UTC) #21
Nico
On 2015/03/10 17:14:47, scottmg wrote: > On 2015/03/10 16:59:13, scottmg wrote: > > On 2015/03/10 ...
5 years, 9 months ago (2015-03-10 17:41:09 UTC) #22
Nico
looks like ananta isn't around today, so I suppose we should just revert for now?
5 years, 9 months ago (2015-03-10 18:11:55 UTC) #23
chromium-reviews
I will be in around 11:30. Will take a look once I get in Thanks ...
5 years, 9 months ago (2015-03-10 18:21:46 UTC) #24
Nico
5 years, 9 months ago (2015-03-10 18:22:55 UTC) #25
Message was sent while issue was closed.
Sounds good, thanks :-)

On Tue, Mar 10, 2015 at 11:21 AM, Anantanarayanan Iyengar <
iyengar@google.com> wrote:

> I will be in around 11:30. Will take a look once I get in
>
> Thanks
> Ananta
> On Mar 10, 2015 11:11 AM, <thakis@chromium.org> wrote:
>
>> looks like ananta isn't around today, so I suppose we should just revert
>> for
>> now?
>>
>> https://codereview.chromium.org/981393002/
>>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698