| 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_;
|
|
|
|
|