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

Issue 256593013: Fail if key synthesized events are off screen. (Closed)

Created:
6 years, 7 months ago by Dominik Grewe
Modified:
6 years, 7 months ago
CC:
chromium-reviews, jam, jdduke+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Fail if key synthesized events are off screen. Enforce that certain key input events (see list below) are on screen. This helps detecting bugs where we're accidentally starting a gesture that's off screen and therefore doesn't have an effect. BUG=363125 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266762

Patch Set 1 #

Total comments: 10

Patch Set 2 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M content/browser/renderer_host/input/synthetic_gesture_target_base.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target_base.cc View 1 4 chunks +23 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Dominik Grewe
PTAL. With this implementation we simply crash if the events are off screen. I thought ...
6 years, 7 months ago (2014-04-28 16:23:00 UTC) #1
jdduke (slow)
Looks pretty reasonable to me. rbyers@, is this about what you had in mind? https://codereview.chromium.org/256593013/diff/1/content/browser/renderer_host/input/synthetic_gesture_target_base.cc ...
6 years, 7 months ago (2014-04-28 16:30:23 UTC) #2
Dominik Grewe
https://codereview.chromium.org/256593013/diff/1/content/browser/renderer_host/input/synthetic_gesture_target_base.cc File content/browser/renderer_host/input/synthetic_gesture_target_base.cc (right): https://codereview.chromium.org/256593013/diff/1/content/browser/renderer_host/input/synthetic_gesture_target_base.cc#newcode124 content/browser/renderer_host/input/synthetic_gesture_target_base.cc:124: bounds -= bounds.OffsetFromOrigin(); // Translate the bounds to (0,0). ...
6 years, 7 months ago (2014-04-28 16:38:46 UTC) #3
Rick Byers
Thanks! I'm fine with crashing assuming we see the details of the crash in the ...
6 years, 7 months ago (2014-04-28 17:01:22 UTC) #4
jdduke (slow)
https://codereview.chromium.org/256593013/diff/1/content/browser/renderer_host/input/synthetic_gesture_target_base.cc File content/browser/renderer_host/input/synthetic_gesture_target_base.cc (right): https://codereview.chromium.org/256593013/diff/1/content/browser/renderer_host/input/synthetic_gesture_target_base.cc#newcode123 content/browser/renderer_host/input/synthetic_gesture_target_base.cc:123: gfx::Rect bounds = host_->GetView()->GetViewBounds(); On 2014/04/28 17:01:22, Rick Byers ...
6 years, 7 months ago (2014-04-28 17:16:09 UTC) #5
Dominik Grewe
I'm not sure how to get a WebContents object so I can call GetContainerBounds/Size. I ...
6 years, 7 months ago (2014-04-28 17:32:24 UTC) #6
jdduke (slow)
lgtm, but please double check with rbyers@, thanks.
6 years, 7 months ago (2014-04-28 17:36:56 UTC) #7
Rick Byers
LGTM On 2014/04/28 17:32:24, Dominik Grewe wrote: > I'm not sure how to get a ...
6 years, 7 months ago (2014-04-28 19:58:03 UTC) #8
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 7 months ago (2014-04-28 20:51:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/256593013/20001
6 years, 7 months ago (2014-04-28 20:53:32 UTC) #10
commit-bot: I haz the power
6 years, 7 months ago (2014-04-29 07:22:54 UTC) #11
Message was sent while issue was closed.
Change committed as 266762

Powered by Google App Engine
This is Rietveld 408576698