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

Issue 2551493002: Don't request wheel or touch events when the view of pepper has no area. (Closed)

Created:
4 years ago by dtapuska
Modified:
4 years ago
Reviewers:
bbudge, piman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, Rick Byers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't request wheel or touch events when the view of pepper has no area. Some pages have a zero width/height embedded flash element. They should not request touch/wheel event listeners if they don't have a size. This is the easiest way to let blink know that pepper doesn't require the events. BUG=670103 Committed: https://crrev.com/c86587bb2e6e0f384bfc21de8dad151cd6d9d21e Cr-Commit-Position: refs/heads/master@{#436076}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rename method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -8 lines) Patch
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 5 chunks +24 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
dtapuska
bbudge@ Can you let me know if this is sane?
4 years ago (2016-12-02 16:31:56 UTC) #4
bbudge
I've added a few comments on your CL. As far as the safety of modifying ...
4 years ago (2016-12-02 18:38:02 UTC) #9
piman
On Fri, Dec 2, 2016 at 10:38 AM, <bbudge@chromium.org> wrote: > I've added a few ...
4 years ago (2016-12-02 19:37:14 UTC) #10
dtapuska
https://codereview.chromium.org/2551493002/diff/1/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/2551493002/diff/1/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode1298 content/renderer/pepper/pepper_plugin_instance_impl.cc:1298: container_->setWantsWheelEvents(IsAcceptingWheelEvents()); On 2016/12/02 18:38:01, bbudge wrote: > Would you ...
4 years ago (2016-12-02 19:42:08 UTC) #11
bbudge
lgtm https://codereview.chromium.org/2551493002/diff/1/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/2551493002/diff/1/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode1644 content/renderer/pepper/pepper_plugin_instance_impl.cc:1644: if (view_data_.rect.size.width == 0 || view_data_.rect.size.height == 0) ...
4 years ago (2016-12-02 22:10:29 UTC) #12
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/2551493002/20001
4 years ago (2016-12-02 22:14:40 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-02 23:22:04 UTC) #17
commit-bot: I haz the power
4 years ago (2016-12-02 23:24:55 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c86587bb2e6e0f384bfc21de8dad151cd6d9d21e
Cr-Commit-Position: refs/heads/master@{#436076}

Powered by Google App Engine
This is Rietveld 408576698