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

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

Issue 287193002: Remove overrides of HitTestRect() which just return false (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/views/controls/link.h
diff --git a/ui/views/controls/link.h b/ui/views/controls/link.h
index a28a73c7c91a9625c83084fae0bbf481d2dcf642..9e7649209897737981ac01e705ff22c81788e88d 100644
--- a/ui/views/controls/link.h
+++ b/ui/views/controls/link.h
@@ -36,7 +36,6 @@ class VIEWS_EXPORT Link : public Label {
// Label:
virtual const char* GetClassName() const OVERRIDE;
virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
- virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
@@ -53,6 +52,9 @@ class VIEWS_EXPORT Link : public Label {
virtual void SetText(const base::string16& text) OVERRIDE;
virtual void SetEnabledColor(SkColor color) OVERRIDE;
+ // ui::EventTarget:
+ virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE;
+
void SetPressedColor(SkColor color);
void SetUnderline(bool underline);
« no previous file with comments | « ui/views/controls/label.cc ('k') | ui/views/controls/link.cc » ('j') | ui/views/controls/link.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698