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

Issue 11743013: Scaling scroll/fling events in multi-monitor setup (Closed)

Created:
7 years, 11 months ago by Shecky Lin
Modified:
7 years, 11 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@git-svn
Visibility:
Public.

Description

Scaling scroll/fling events in multi-monitor setup The CL adds an event filter that transforms input event properties in the extended desktop environment. It currently scales scroll/fling events' offset values based on the following logic: 1. Linear scaling w.r.t. the device scale factor, which is 2x for highDPI displays. 2. 1.2x scaling for external displays, since they are usually larger than internal ones. Both scalings can stack on each other, i.e. you can get as high as a 2.4x boost if you have a high DPI external display. Contributed by sheckylin@chromium.org BUG=chromium:166392 TEST=Tested on link w/o external display. Change-Id: Ie29e03fcf9f6e5ae1dd6231990103237c3129fd6 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176038

Patch Set 1 #

Patch Set 2 : Fix lint errors #

Total comments: 1

Patch Set 3 : Rescale -> Scale #

Patch Set 4 : Rescale -> scale #

Total comments: 5

Patch Set 5 : Addressing Ben's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -0 lines) Patch
M ash/ash.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A ash/display/event_transformation_handler.h View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
A ash/display/event_transformation_handler.cc View 1 2 3 4 1 chunk +57 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M ui/base/events/event.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/base/events/event.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Shecky Lin
Please take a look of this, thanks!
7 years, 11 months ago (2013-01-03 09:18:43 UTC) #1
DaveMoore
LGTM modulo nit https://codereview.chromium.org/11743013/diff/6001/ui/base/events/event.h File ui/base/events/event.h (right): https://codereview.chromium.org/11743013/diff/6001/ui/base/events/event.h#newcode638 ui/base/events/event.h:638: void Rescale(const float factor); Nit: The ...
7 years, 11 months ago (2013-01-07 04:31:45 UTC) #2
Shecky Lin
On 2013/01/07 04:31:45, DaveMoore wrote: > LGTM modulo nit > > https://codereview.chromium.org/11743013/diff/6001/ui/base/events/event.h > File ui/base/events/event.h ...
7 years, 11 months ago (2013-01-07 04:36:55 UTC) #3
Ben Goodger (Google)
https://codereview.chromium.org/11743013/diff/13001/ash/display/event_transformation_filter.cc File ash/display/event_transformation_filter.cc (right): https://codereview.chromium.org/11743013/diff/13001/ash/display/event_transformation_filter.cc#newcode39 ash/display/event_transformation_filter.cc:39: float scale = 1.0f; delete https://codereview.chromium.org/11743013/diff/13001/ash/display/event_transformation_filter.cc#newcode43 ash/display/event_transformation_filter.cc:43: scale *= ...
7 years, 11 months ago (2013-01-07 18:06:05 UTC) #4
Shecky Lin
On 2013/01/07 18:06:05, Ben Goodger (Google) wrote: > https://codereview.chromium.org/11743013/diff/13001/ash/display/event_transformation_filter.cc > File ash/display/event_transformation_filter.cc (right): > > ...
7 years, 11 months ago (2013-01-09 07:53:25 UTC) #5
Ben Goodger (Google)
lgtm
7 years, 11 months ago (2013-01-09 17:23:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheckylin@chromium.org/11743013/20001
7 years, 11 months ago (2013-01-10 04:28:11 UTC) #7
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 06:49:15 UTC) #8
Message was sent while issue was closed.
Change committed as 176038

Powered by Google App Engine
This is Rietveld 408576698