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

Issue 2677153003: Fix event dispatching offset problem in the client-lib in high-dpi mode. (conversion) (Closed)

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

Description

Fix event dispatching offset problem in the client-lib in high-dpi mode. Convert event location from pixels to DIP before sending it to Window::ConvertPointToTarget (which uses DIP) to add offset to the event location; then set_transform_events to be false in WindowEventDispatcher to avoid converting to DIP again. BUG=687700

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -4 lines) Patch
M ui/aura/mus/window_tree_client.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M ui/aura/window_event_dispatcher.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ui/aura/window_event_dispatcher.cc View 2 chunks +4 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 1 (1 generated)
riajiang
3 years, 10 months ago (2017-02-06 17:01:35 UTC) #1
Description was changed from

==========
Fix event dispatching offset problem in the client-lib in high-dpi mode.

BUG=687700
==========

to

==========
Fix event dispatching offset problem in the client-lib in high-dpi mode.

Convert event location from pixels to DIP before sending it to 
Window::ConvertPointToTarget (which uses DIP) to add offset to the event
location; then set_transform_events to be false in WindowEventDispatcher
to avoid converting to DIP again.

BUG=687700
==========

Powered by Google App Engine
This is Rietveld 408576698