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

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

Issue 11044020: Make Web Intents picker in Views conform to latest mocks (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Include changes from CL 11077006 Created 8 years, 2 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 5fcce6feada23132279a43f5955d438014966657..84d87cdd3ed9b6e68baf6babfe338ebac90d5ec2 100644
--- a/ui/views/controls/link.h
+++ b/ui/views/controls/link.h
@@ -39,6 +39,9 @@ class VIEWS_EXPORT Link : public Label {
virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
virtual void OnMouseCaptureLost() OVERRIDE;
+ virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
+ virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
+
virtual ui::EventResult OnGestureEvent(
const ui::GestureEvent& event) OVERRIDE;
virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
@@ -51,6 +54,7 @@ class VIEWS_EXPORT Link : public Label {
virtual void SetEnabledColor(SkColor color) OVERRIDE;
void SetPressedColor(SkColor color);
+ void SetUnderlineOnHover(bool underlineOnHover);
static const char kViewClassName[];
@@ -66,6 +70,12 @@ class VIEWS_EXPORT Link : public Label {
// Whether the link is currently pressed.
bool pressed_;
+ // Whether the link is underlined only on hover.
+ bool underlineOnHover_;
+
+ // Whether the mouse is hovering over the link.
+ bool mouseIsInside_;
+
// The color when the link is neither pressed nor disabled.
SkColor requested_enabled_color_;

Powered by Google App Engine
This is Rietveld 408576698