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

Issue 2226933004: Mac: Share kScrollbarPixelsPerCocoaTick between ui:: and blink:: events (Closed)

Created:
4 years, 4 months ago by tapted
Modified:
4 years, 4 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, jam, darin-cc_chromium.org, dtapuska+chromiumwatch_chromium.org, tdresser+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Share kScrollbarPixelsPerCocoaTick between ui:: and blink:: events Currently scrolling in MacViews with a "real" mouse wheel is too fast. A multiplier is applied that maps the values used for kCGScrollEventUnitLine to (effectively) kCGScrollEventUnitPixel, and the one used for MacViews was too big. Share the constant that content:: uses by moving it to ui/events/cocoa/cocoa_event_utils.h Add a test to ensure the event types agree. Problem: the initializers on NSEvent for creating test events are too limited. We also want to beef up testing of scroll event streams for elastic scrolling and whatnot, so move the stuff in events_mac_unittest.mm to cocoa_test_event_utils:: for creating test scroll events. BUG=615948 Committed: https://crrev.com/315a111b6cdd928cbd0862dd97f5a98482dd0261 Committed: https://crrev.com/a3d3da13da743ee2b63e5e0fd45d899e45ce2979 Cr-Original-Commit-Position: refs/heads/master@{#411216} Cr-Commit-Position: refs/heads/master@{#411275}

Patch Set 1 #

Patch Set 2 : Nits, and just share the constant whynot #

Patch Set 3 : Consolidate! #

Patch Set 4 : nit diff #

Patch Set 5 : Unconsolidate! NSApp sendEvent is too magical #

Total comments: 4

Patch Set 6 : Rebase for r411201 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -51 lines) Patch
M content/browser/renderer_host/input/web_input_event_builders_mac.mm View 1 2 3 4 5 2 chunks +5 lines, -7 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_builders_mac_unittest.mm View 1 2 3 4 5 2 chunks +41 lines, -0 lines 0 comments Download
M ui/events/cocoa/cocoa_event_utils.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/cocoa/events_mac.mm View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M ui/events/cocoa/events_mac_unittest.mm View 1 2 3 4 2 chunks +11 lines, -38 lines 0 comments Download
M ui/events/test/cocoa_test_event_utils.h View 1 2 3 4 2 chunks +19 lines, -0 lines 0 comments Download
M ui/events/test/cocoa_test_event_utils.mm View 1 2 3 4 2 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (44 generated)
tapted
Hi Avi, please take a look
4 years, 4 months ago (2016-08-10 12:48:34 UTC) #30
Avi (use Gerrit)
lgtm https://codereview.chromium.org/2226933004/diff/140001/ui/events/cocoa/cocoa_event_utils.h File ui/events/cocoa/cocoa_event_utils.h (right): https://codereview.chromium.org/2226933004/diff/140001/ui/events/cocoa/cocoa_event_utils.h#newcode15 ui/events/cocoa/cocoa_event_utils.h:15: constexpr double kScrollbarPixelsPerCocoaTick = 40.0; Is that the ...
4 years, 4 months ago (2016-08-10 15:17:30 UTC) #31
tapted
Thanks avi! https://codereview.chromium.org/2226933004/diff/140001/ui/events/cocoa/cocoa_event_utils.h File ui/events/cocoa/cocoa_event_utils.h (right): https://codereview.chromium.org/2226933004/diff/140001/ui/events/cocoa/cocoa_event_utils.h#newcode15 ui/events/cocoa/cocoa_event_utils.h:15: constexpr double kScrollbarPixelsPerCocoaTick = 40.0; On 2016/08/10 ...
4 years, 4 months ago (2016-08-11 01:24:08 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2226933004/140001
4 years, 4 months ago (2016-08-11 01:29:12 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 4 months ago (2016-08-11 01:34:27 UTC) #36
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/315a111b6cdd928cbd0862dd97f5a98482dd0261 Cr-Commit-Position: refs/heads/master@{#411216}
4 years, 4 months ago (2016-08-11 01:36:03 UTC) #38
tapted
A revert of this CL (patchset #5 id:140001) has been created in https://codereview.chromium.org/2234143003/ by tapted@chromium.org. ...
4 years, 4 months ago (2016-08-11 01:54:34 UTC) #39
findit-for-me
FYI: Findit try jobs (rerunning failed compile or tests) identified this CL at revision 411216 ...
4 years, 4 months ago (2016-08-11 02:02:59 UTC) #40
tapted
https://codereview.chromium.org/2226933004/diff/140001/content/browser/renderer_host/input/web_input_event_builders_mac_unittest.mm File content/browser/renderer_host/input/web_input_event_builders_mac_unittest.mm (right): https://codereview.chromium.org/2226933004/diff/140001/content/browser/renderer_host/input/web_input_event_builders_mac_unittest.mm#newcode586 content/browser/renderer_host/input/web_input_event_builders_mac_unittest.mm:586: false, false); bleh - web_input_event_builders_mac.h doesn't change for year, ...
4 years, 4 months ago (2016-08-11 04:25:22 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2226933004/160001
4 years, 4 months ago (2016-08-11 04:26:08 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/235704)
4 years, 4 months ago (2016-08-11 04:27:23 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2226933004/160001
4 years, 4 months ago (2016-08-11 05:01:24 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/235748)
4 years, 4 months ago (2016-08-11 05:02:56 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2226933004/160001
4 years, 4 months ago (2016-08-11 06:01:13 UTC) #56
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 4 months ago (2016-08-11 06:05:00 UTC) #58
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 06:06:38 UTC) #60
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a3d3da13da743ee2b63e5e0fd45d899e45ce2979
Cr-Commit-Position: refs/heads/master@{#411275}

Powered by Google App Engine
This is Rietveld 408576698