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

Unified Diff: ui/views/controls/label.h

Issue 10827198: Change View::HitTest to View::HitTestRect (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed errors reported by trybots Created 8 years, 4 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 | « ui/views/controls/button/menu_button.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.h
diff --git a/ui/views/controls/label.h b/ui/views/controls/label.h
index 3cb14ca2586ff7f88cb10882ec83f3c973275687..4767e14c8de8dedb113bff6f3db270266ffd814b 100644
--- a/ui/views/controls/label.h
+++ b/ui/views/controls/label.h
@@ -184,7 +184,7 @@ class VIEWS_EXPORT Label : public View {
// GetPreferredSize().height() if the receiver is not multi-line.
virtual int GetHeightForWidth(int w) OVERRIDE;
virtual std::string GetClassName() const OVERRIDE;
- virtual bool HitTest(const gfx::Point& l) const OVERRIDE;
+ virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
// Mouse enter/exit are overridden to render mouse over background color.
// These invoke SetContainsMouse as necessary.
virtual void OnMouseMoved(const MouseEvent& event) OVERRIDE;
« no previous file with comments | « ui/views/controls/button/menu_button.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698