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

Issue 1609193002: [UseZoomForDSF] Alwatys use DIP coordinates in pepper plugin (Closed)

Created:
4 years, 11 months ago by oshima
Modified:
4 years, 10 months ago
Reviewers:
bbudge, tdresser
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, tdresser+watch_chromium.org, jam, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[UseZoomForDSF] Always use DIP coordinates in pepper plugin Pepper API is device scale factor aware, so we need to convert the coordinates between viewport and DIP, when use-zoom-for-dsf mode is enabled. * Convert events and bounds from the Viewport to DIP. * Convert caret bounds from DIP to Viewport. * Moved the utility function to scale WebInputEvent to ui/events/blink This CL depends on https://codereview.chromium.org/1603253003/ BUG=485650 Committed: https://crrev.com/be76caa53f0ca1afbd65fcff6a2486e10895bd64 Cr-Commit-Position: refs/heads/master@{#371769}

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -136 lines) Patch
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.cc View 1 chunk +0 lines, -108 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util_unittest.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 8 chunks +46 lines, -12 lines 0 comments Download
M ui/events/blink/blink_event_util.h View 2 chunks +8 lines, -1 line 0 comments Download
M ui/events/blink/blink_event_util.cc View 1 chunk +105 lines, -0 lines 0 comments Download
A ui/events/blink/blink_event_util_unittest.cc View 1 chunk +30 lines, -0 lines 0 comments Download
M ui/events/events_unittests.gyp View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 30 (16 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1609193002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609193002/1
4 years, 11 months ago (2016-01-20 10:17:05 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-20 11:39:07 UTC) #4
oshima
4 years, 11 months ago (2016-01-20 23:43:27 UTC) #10
bbudge
https://codereview.chromium.org/1609193002/diff/20001/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/1609193002/diff/20001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode1086 content/renderer/pepper/pepper_plugin_instance_impl.cc:1086: // If it is never set by the plugin, ...
4 years, 11 months ago (2016-01-21 00:34:52 UTC) #11
oshima
thank you for prompt review! PTAL https://codereview.chromium.org/1609193002/diff/20001/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/1609193002/diff/20001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode1086 content/renderer/pepper/pepper_plugin_instance_impl.cc:1086: // If it ...
4 years, 11 months ago (2016-01-21 01:12:07 UTC) #14
bbudge
content/renderer/pepper LGTM
4 years, 11 months ago (2016-01-21 17:43:04 UTC) #15
oshima
tdresser@ -> ui/events/blink, content/browser/renderer_host/input OWNERS I moved the utility function from content/browser/renderer_host/input to ui/events/blink so ...
4 years, 11 months ago (2016-01-21 18:03:20 UTC) #17
tdresser
LGTM with nits. https://codereview.chromium.org/1609193002/diff/60001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/1609193002/diff/60001/content/browser/renderer_host/input/input_router_impl.cc#newcode422 content/browser/renderer_host/input/input_router_impl.cc:422: // This coversion is temporary. WebInputEvent ...
4 years, 11 months ago (2016-01-21 21:14:52 UTC) #18
oshima
https://codereview.chromium.org/1609193002/diff/60001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/1609193002/diff/60001/content/browser/renderer_host/input/input_router_impl.cc#newcode422 content/browser/renderer_host/input/input_router_impl.cc:422: // This coversion is temporary. WebInputEvent should be generated ...
4 years, 11 months ago (2016-01-22 01:22:23 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1609193002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609193002/80001
4 years, 11 months ago (2016-01-22 01:23:52 UTC) #21
oshima
On 2016/01/22 01:23:52, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years, 11 months ago (2016-01-22 01:33:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1609193002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609193002/100001
4 years, 10 months ago (2016-01-27 09:32:58 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 10 months ago (2016-01-27 10:35:50 UTC) #28
commit-bot: I haz the power
4 years, 10 months ago (2016-01-27 10:37:14 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/be76caa53f0ca1afbd65fcff6a2486e10895bd64
Cr-Commit-Position: refs/heads/master@{#371769}

Powered by Google App Engine
This is Rietveld 408576698