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

Issue 32463003: Modify hit test masks for tabs and tab close buttons (Closed)

Created:
7 years, 2 months ago by tdanderson
Modified:
7 years, 1 month ago
CC:
chromium-reviews, tfarina, ben+views_chromium.org
Visibility:
Public.

Description

Modify hit test masks for tabs and tab close buttons In preparation for landing rect-based event targeting (issue 129794), the tab close button will need a hit test mask and the hit test mask for a tab will need to be modified. This will take into consideration the possibility where the tab close button of one tab is occluded by another tab when in stacked tab / touch layout mode. BUG=306186 TEST=TabStripTest.TabHitTestMaskWhenStacked Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232797

Patch Set 1 #

Patch Set 2 : WIP, not for review #

Patch Set 3 : WIP, not for review #

Patch Set 4 : WIP, not for review #

Patch Set 5 : patch for review #

Patch Set 6 : patch for review #

Total comments: 5

Patch Set 7 : comments addressed #

Patch Set 8 : some changes to new tests #

Total comments: 5

Patch Set 9 : parameter order changed #

Total comments: 2

Patch Set 10 : HitTestSource moved #

Total comments: 3

Patch Set 11 : patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -8 lines) Patch
M chrome/browser/ui/views/tabs/tab.h View 1 2 3 4 5 6 7 8 10 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +52 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip_unittest.cc View 1 2 3 4 5 6 7 8 10 3 chunks +157 lines, -0 lines 0 comments Download
M ui/views/view.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -1 line 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -2 lines 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 4 5 6 7 8 10 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
tdanderson
Hi Scott, can you please take a look? https://codereview.chromium.org/32463003/diff/330001/ui/views/view.h File ui/views/view.h (right): https://codereview.chromium.org/32463003/diff/330001/ui/views/view.h#newcode978 ui/views/view.h:978: enum ...
7 years, 2 months ago (2013-10-24 20:56:23 UTC) #1
sky
https://codereview.chromium.org/32463003/diff/330001/chrome/browser/ui/views/tabs/tab.h File chrome/browser/ui/views/tabs/tab.h (right): https://codereview.chromium.org/32463003/diff/330001/chrome/browser/ui/views/tabs/tab.h#newcode179 chrome/browser/ui/views/tabs/tab.h:179: HitTestSource source = HIT_TEST_SOURCE_MOUSE) const OVERRIDE; style guide says ...
7 years, 2 months ago (2013-10-24 22:13:38 UTC) #2
tdanderson
Can you please take another look? Note I also made some changes to the tab ...
7 years, 2 months ago (2013-10-25 00:10:51 UTC) #3
tdanderson
https://codereview.chromium.org/32463003/diff/570001/chrome/browser/ui/views/tabs/tab_strip_unittest.cc File chrome/browser/ui/views/tabs/tab_strip_unittest.cc (right): https://codereview.chromium.org/32463003/diff/570001/chrome/browser/ui/views/tabs/tab_strip_unittest.cc#newcode310 chrome/browser/ui/views/tabs/tab_strip_unittest.cc:310: // TODO(tdanderson): Uncomment this line once crbug.com/311609 is resolved. ...
7 years, 1 month ago (2013-10-25 17:02:25 UTC) #4
sky
https://codereview.chromium.org/32463003/diff/570001/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/32463003/diff/570001/chrome/browser/ui/views/tabs/tab_strip.cc#newcode313 chrome/browser/ui/views/tabs/tab_strip.cc:313: HitTestSource source) const OVERRIDE; align HitTestSource with openning '(' ...
7 years, 1 month ago (2013-10-28 14:26:00 UTC) #5
tdanderson
Scott, can you please take another look? https://codereview.chromium.org/32463003/diff/570001/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/32463003/diff/570001/chrome/browser/ui/views/tabs/tab_strip.cc#newcode313 chrome/browser/ui/views/tabs/tab_strip.cc:313: HitTestSource source) ...
7 years, 1 month ago (2013-10-28 15:40:08 UTC) #6
sky
LGTM
7 years, 1 month ago (2013-10-28 19:50:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/32463003/710001
7 years, 1 month ago (2013-10-28 20:14:15 UTC) #8
Ben Goodger (Google)
https://codereview.chromium.org/32463003/diff/710001/ui/views/view.h File ui/views/view.h (right): https://codereview.chromium.org/32463003/diff/710001/ui/views/view.h#newcode116 ui/views/view.h:116: enum HitTestSource { let's not add this to views. ...
7 years, 1 month ago (2013-10-28 20:23:29 UTC) #9
Ben Goodger (Google)
+sadrul, with whom I have been discussing event stuff for some time. Sadrul, my ideal ...
7 years, 1 month ago (2013-10-28 20:46:07 UTC) #10
tdanderson
Can you please take another look? Ben, I moved HitTestSource out of View for now ...
7 years, 1 month ago (2013-10-29 17:30:00 UTC) #11
Ben Goodger (Google)
https://codereview.chromium.org/32463003/diff/930001/ui/views/view.h File ui/views/view.h (right): https://codereview.chromium.org/32463003/diff/930001/ui/views/view.h#newcode1130 ui/views/view.h:1130: virtual void GetHitTestMask(HitTestSource source, gfx::Path* mask) const; I didn't ...
7 years, 1 month ago (2013-10-30 17:46:54 UTC) #12
Ben Goodger (Google)
lgtm https://codereview.chromium.org/32463003/diff/930001/ui/views/rect_based_targeting_utils.h File ui/views/rect_based_targeting_utils.h (right): https://codereview.chromium.org/32463003/diff/930001/ui/views/rect_based_targeting_utils.h#newcode22 ui/views/rect_based_targeting_utils.h:22: enum HitTestSource { just go ahead and inline ...
7 years, 1 month ago (2013-11-04 20:14:03 UTC) #13
tdanderson
Ben, I added the TODO as requested and am going to put this into the ...
7 years, 1 month ago (2013-11-04 20:36:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/32463003/1200001
7 years, 1 month ago (2013-11-04 20:51:46 UTC) #15
commit-bot: I haz the power
7 years, 1 month ago (2013-11-04 21:14:37 UTC) #16
Message was sent while issue was closed.
Change committed as 232797

Powered by Google App Engine
This is Rietveld 408576698