Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417803002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417803002/1
5 years, 2 months ago
(2015-10-20 21:00:28 UTC)
#4
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/19203)
5 years, 2 months ago
(2015-10-20 21:10:57 UTC)
#6
https://codereview.chromium.org/1417803002/diff/70001/content/browser/renderer_host/input/motion_event_web.cc File content/browser/renderer_host/input/motion_event_web.cc (right): https://codereview.chromium.org/1417803002/diff/70001/content/browser/renderer_host/input/motion_event_web.cc#newcode141 content/browser/renderer_host/input/motion_event_web.cc:141: if (pointer.tiltY < 0) { On 2015/11/02 14:44:07, tdresser ...
5 years, 1 month ago
(2015-11-02 16:27:17 UTC)
#16
https://codereview.chromium.org/1417803002/diff/70001/content/browser/rendere...
File content/browser/renderer_host/input/motion_event_web.cc (right):
https://codereview.chromium.org/1417803002/diff/70001/content/browser/rendere...
content/browser/renderer_host/input/motion_event_web.cc:141: if (pointer.tiltY <
0) {
On 2015/11/02 14:44:07, tdresser wrote:
> I think this would be easier to read if you explicitly check all four
quadrants.
Yes, especially because the grouping was not actually entirely correct.
The first condition should be
if (pointer.tiltY <= 0 && pointer.tiltX < 0)
instead of
if (pointer.tiltY < 0 && pointer.tiltX < 0)
thus this code did not handle correctly the case when a stylus was tilted
straight to the left.
I flattened the nested if blocks and amended the unit test to check that special
case, too.
>
> i.e.
>
> if (pointer.tiltY < 0 && pointer.tiltX < 0)
> ...
> else if(pointer.tiltY < 0 && pointer.tiltX > 0)
> ...
> else if(pointer.tiltY > 0 && pointer.tiltX < 0)
> ...
> else
> ...
Done.
https://codereview.chromium.org/1417803002/diff/70001/content/browser/rendere...
content/browser/renderer_host/input/motion_event_web.cc:154: // always seem to
be set to zero) unchanged.
On 2015/11/02 14:44:07, tdresser wrote:
> While you're editing this, can you change:
> "always seem" -> "always seems"?
Done.
https://codereview.chromium.org/1417803002/diff/70001/content/browser/rendere...
File content/browser/renderer_host/input/web_input_event_util_unittest.cc
(right):
https://codereview.chromium.org/1417803002/diff/70001/content/browser/rendere...
content/browser/renderer_host/input/web_input_event_util_unittest.cc:28:
namespace content {
On 2015/11/02 14:44:07, tdresser wrote:
> Leave space after namespace.
Done.
5 years, 1 month ago
(2015-11-02 19:21:10 UTC)
#17
On 2015/11/02 16:27:17, e_hakkinen wrote:
>
https://codereview.chromium.org/1417803002/diff/70001/content/browser/rendere...
> File content/browser/renderer_host/input/motion_event_web.cc (right):
>
>
https://codereview.chromium.org/1417803002/diff/70001/content/browser/rendere...
> content/browser/renderer_host/input/motion_event_web.cc:141: if (pointer.tiltY
<
> 0) {
> On 2015/11/02 14:44:07, tdresser wrote:
> > I think this would be easier to read if you explicitly check all four
> quadrants.
>
> Yes, especially because the grouping was not actually entirely correct.
> The first condition should be
> if (pointer.tiltY <= 0 && pointer.tiltX < 0)
> instead of
> if (pointer.tiltY < 0 && pointer.tiltX < 0)
> thus this code did not handle correctly the case when a stylus was tilted
> straight to the left.
>
> I flattened the nested if blocks and amended the unit test to check that
special
> case, too.
>
> >
> > i.e.
> >
> > if (pointer.tiltY < 0 && pointer.tiltX < 0)
> > ...
> > else if(pointer.tiltY < 0 && pointer.tiltX > 0)
> > ...
> > else if(pointer.tiltY > 0 && pointer.tiltX < 0)
> > ...
> > else
> > ...
>
> Done.
>
>
https://codereview.chromium.org/1417803002/diff/70001/content/browser/rendere...
> content/browser/renderer_host/input/motion_event_web.cc:154: // always seem to
> be set to zero) unchanged.
> On 2015/11/02 14:44:07, tdresser wrote:
> > While you're editing this, can you change:
> > "always seem" -> "always seems"?
>
> Done.
>
>
https://codereview.chromium.org/1417803002/diff/70001/content/browser/rendere...
> File content/browser/renderer_host/input/web_input_event_util_unittest.cc
> (right):
>
>
https://codereview.chromium.org/1417803002/diff/70001/content/browser/rendere...
> content/browser/renderer_host/input/web_input_event_util_unittest.cc:28:
> namespace content {
> On 2015/11/02 14:44:07, tdresser wrote:
> > Leave space after namespace.
>
> Done.
content/{browser,public}/android/ - lgtm
e_hakkinen
The CQ bit was checked by eero.hakkinen@intel.com
5 years, 1 month ago
(2015-11-02 22:48:41 UTC)
#18
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417803002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417803002/90001
5 years, 1 month ago
(2015-11-02 22:49:24 UTC)
#20
Issue 1417803002: Pass MotionEvent tilt angles to Blink on Android.
(Closed)
Created 5 years, 2 months ago by e_hakkinen
Modified 5 years, 1 month ago
Reviewers: aelias_OOO_until_Jul13, eero, mustaq, sadrul, tdresser, Ted C, yfriedman
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 10