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

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: DCHECK_EQ 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/views/masked_view_targeter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..92df62e9b578c6a50a3e82422d7c370f007f98f0 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_EQ(view, masked_view());
+
// The mic button icon is a circle.
gfx::Rect local_bounds = view->GetLocalBounds();
int radius = local_bounds.width() / 2 + kIndicatorRadiusMinOffset;
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/views/masked_view_targeter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698