Home | History | Annotate | Download | only in controls

Lines Matching defs:Link

5 #include "ui/views/controls/link.h"
24 const char Link::kViewClassName[] = "Link";
26 Link::Link() : Label(string16()) {
30 Link::Link(const string16& title) : Label(title) {
34 Link::~Link() {
37 SkColor Link::GetDefaultEnabledColor() {
45 void Link::OnEnabledChanged() {
50 const char* Link::GetClassName() const {
54 gfx::NativeCursor Link::GetCursor(const ui::MouseEvent& event) {
65 bool Link::HitTestRect(const gfx::Rect& rect) const {
66 // We need to allow clicks on the link. So we override the implementation in
71 bool Link::OnMousePressed(const ui::MouseEvent& event) {
79 bool Link::OnMouseDragged(const ui::MouseEvent& event) {
86 void Link::OnMouseReleased(const ui::MouseEvent& event) {
93 // Focus the link on click.
101 void Link::OnMouseCaptureLost() {
105 bool Link::OnKeyPressed(const ui::KeyEvent& event) {
113 // Focus the link on key pressed.
122 bool Link::SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) {
128 void Link::GetAccessibleState(ui::AccessibleViewState* state) {
133 void Link::OnGestureEvent(ui::GestureEvent* event) {
150 void Link::SetFont(const gfx::Font& font) {
155 void Link::SetEnabledColor(SkColor color) {
161 void Link::SetPressedColor(SkColor color) {
167 void Link::SetUnderline(bool underline) {
174 void Link::Init() {
191 void Link::SetPressed(bool pressed) {
201 void Link::RecalculateFont() {
202 // Underline the link iff it is enabled and |underline_| is true.