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

Issue 286933014: Introduce the MaskedViewTargeter class (Closed)

Created:
6 years, 7 months ago by tdanderson
Modified:
6 years, 7 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Introduce the MaskedViewTargeter class Introduce MaskedViewTargeter, a derived class of ViewTargeter. Classes deriving from MaskedViewTargeter will be used to define a custom-shaped hit test mask on a view to be considered in event targeting. BUG=375826 TEST=ViewTargeterTest.MaskedViewTargeter Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273023

Patch Set 1 #

Patch Set 2 : VIEWS_EXPORT MaskedViewTargeter #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : comments addressed #

Total comments: 2

Patch Set 5 : quick nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -0 lines) Patch
A ui/views/masked_view_targeter.h View 1 1 chunk +44 lines, -0 lines 0 comments Download
A ui/views/masked_view_targeter.cc View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
M ui/views/view_targeter.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/view_targeter.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M ui/views/view_targeter_unittest.cc View 1 2 3 2 chunks +94 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
tdanderson
Sadrul, PTAL.
6 years, 7 months ago (2014-05-21 18:12:18 UTC) #1
tdanderson
On 2014/05/21 18:12:18, tdanderson wrote: > Sadrul, PTAL. Sadrul, I am getting the following error ...
6 years, 7 months ago (2014-05-21 20:56:06 UTC) #2
sadrul
On 2014/05/21 20:56:06, tdanderson wrote: > On 2014/05/21 18:12:18, tdanderson wrote: > > Sadrul, PTAL. ...
6 years, 7 months ago (2014-05-21 21:10:39 UTC) #3
tdanderson
On 2014/05/21 21:10:39, sadrul wrote: > On 2014/05/21 20:56:06, tdanderson wrote: > > On 2014/05/21 ...
6 years, 7 months ago (2014-05-21 21:24:17 UTC) #4
tfarina
On 2014/05/21 21:24:17, tdanderson wrote: > On 2014/05/21 21:10:39, sadrul wrote: > > On 2014/05/21 ...
6 years, 7 months ago (2014-05-21 21:33:36 UTC) #5
sadrul
lgtm https://codereview.chromium.org/286933014/diff/40001/ui/views/view_targeter.cc File ui/views/view_targeter.cc (right): https://codereview.chromium.org/286933014/diff/40001/ui/views/view_targeter.cc#newcode20 ui/views/view_targeter.cc:20: event); The formatting here seems a bit weird. ...
6 years, 7 months ago (2014-05-27 16:03:32 UTC) #6
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 7 months ago (2014-05-27 16:24:06 UTC) #7
tdanderson
https://codereview.chromium.org/286933014/diff/40001/ui/views/view_targeter.cc File ui/views/view_targeter.cc (right): https://codereview.chromium.org/286933014/diff/40001/ui/views/view_targeter.cc#newcode20 ui/views/view_targeter.cc:20: event); On 2014/05/27 16:03:32, sadrul wrote: > The formatting ...
6 years, 7 months ago (2014-05-27 16:24:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/286933014/50001
6 years, 7 months ago (2014-05-27 16:24:46 UTC) #9
sadrul
https://codereview.chromium.org/286933014/diff/50001/ui/views/view_targeter.cc File ui/views/view_targeter.cc (right): https://codereview.chromium.org/286933014/diff/50001/ui/views/view_targeter.cc#newcode17 ui/views/view_targeter.cc:17: gfx::RectF event_bounds(event.location(), gfx::Size(1, 1)); Another quick nit: event.location_f() and ...
6 years, 7 months ago (2014-05-27 16:26:17 UTC) #10
tdanderson
The CQ bit was unchecked by tdanderson@chromium.org
6 years, 7 months ago (2014-05-27 16:27:20 UTC) #11
tdanderson
https://codereview.chromium.org/286933014/diff/50001/ui/views/view_targeter.cc File ui/views/view_targeter.cc (right): https://codereview.chromium.org/286933014/diff/50001/ui/views/view_targeter.cc#newcode17 ui/views/view_targeter.cc:17: gfx::RectF event_bounds(event.location(), gfx::Size(1, 1)); On 2014/05/27 16:26:18, sadrul wrote: ...
6 years, 7 months ago (2014-05-27 16:30:07 UTC) #12
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 7 months ago (2014-05-27 16:30:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/286933014/70001
6 years, 7 months ago (2014-05-27 16:31:07 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 7 months ago (2014-05-27 19:37:29 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-27 19:39:08 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/78100)
6 years, 7 months ago (2014-05-27 19:39:09 UTC) #17
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 7 months ago (2014-05-27 19:39:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/286933014/70001
6 years, 7 months ago (2014-05-27 19:40:52 UTC) #19
commit-bot: I haz the power
6 years, 7 months ago (2014-05-27 20:55:58 UTC) #20
Message was sent while issue was closed.
Change committed as 273023

Powered by Google App Engine
This is Rietveld 408576698