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

Issue 308003019: Add DCHECK to MaskedViewTargeter::GetHitTestMask() overrides (Closed)

Created:
6 years, 6 months ago by tdanderson
Modified:
6 years, 6 months ago
Reviewers:
xiyuan, sadrul, sky
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Visibility:
Public.

Description

Add DCHECK to MaskedViewTargeter::GetHitTestMask() overrides Add DCHECK_EQ(view, masked_view()) to the overrides of MaskedViewTargeter::GetHitTestMask(). This is to ensure the function is only called with |view| corresponding to the view on which the targeter is installed. This is nice to have because GetHitTestMask() is called directly from a few places such as overrides of View::GetHitTestMask() and (soon) from within TabCloseButtonTargeter; see issue 377557. BUG=377527 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274852

Patch Set 1 #

Total comments: 2

Patch Set 2 : DCHECK_EQ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/views/speech_view.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/masked_view_targeter.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
tdanderson
Sadrul, can you please take a look?
6 years, 6 months ago (2014-06-02 23:14:25 UTC) #1
sadrul
This change implies that these Views (i.e. new-tab button, mic-button) either won't have any children, ...
6 years, 6 months ago (2014-06-03 16:37:01 UTC) #2
tdanderson
I don't believe this will cause problems if there is a view with a MaskedViewTargeter ...
6 years, 6 months ago (2014-06-03 18:22:54 UTC) #3
sadrul
lgtm
6 years, 6 months ago (2014-06-03 18:28:41 UTC) #4
tdanderson
Adding sky@ (chrome/) and xiyuan@ (ui/app_list) for OWNERS review.
6 years, 6 months ago (2014-06-03 19:21:18 UTC) #5
xiyuan
ui/app_list LGTM
6 years, 6 months ago (2014-06-03 19:44:22 UTC) #6
sky
LGTM
6 years, 6 months ago (2014-06-03 20:16:01 UTC) #7
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 6 months ago (2014-06-04 15:58:18 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/308003019/20001
6 years, 6 months ago (2014-06-04 15:59:46 UTC) #9
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 17:09:59 UTC) #10
Message was sent while issue was closed.
Change committed as 274852

Powered by Google App Engine
This is Rietveld 408576698