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

Unified Diff: ui/app_list/views/speech_view.cc

Issue 308003019: Add DCHECK to MaskedViewTargeter::GetHitTestMask() overrides (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/app_list/views/speech_view.cc
diff --git a/ui/app_list/views/speech_view.cc b/ui/app_list/views/speech_view.cc
index d5a62696c59d05e912757f70b9a8601da3b20068..02c08b43a53e593eba59c7857328595a2e4f564f 100644
--- a/ui/app_list/views/speech_view.cc
+++ b/ui/app_list/views/speech_view.cc
@@ -118,6 +118,9 @@ class MicButtonTargeter : public views::MaskedViewTargeter {
// views::MaskedViewTargeter:
virtual bool GetHitTestMask(const views::View* view,
gfx::Path* mask) const OVERRIDE {
+ DCHECK(mask);
+ DCHECK(view == masked_view());
+
// The mic button icon is a circle.
gfx::Rect local_bounds = view->GetLocalBounds();
int radius = local_bounds.width() / 2 + kIndicatorRadiusMinOffset;

Powered by Google App Engine
This is Rietveld 408576698