summaryrefslogtreecommitdiffstats
path: root/views/controls/link.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/link.cc')
-rw-r--r--views/controls/link.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/views/controls/link.cc b/views/controls/link.cc
index e83c0cd..80172e2 100644
--- a/views/controls/link.cc
+++ b/views/controls/link.cc
@@ -51,7 +51,6 @@ void GetColors(const SkColor* background_color, // NULL means "use default"
*normal_color = kNormalColor;
}
}
-
}
namespace views {
@@ -145,6 +144,20 @@ bool Link::SkipDefaultKeyEventProcessing(const KeyEvent& e) {
(e.GetKeyCode() == base::VKEY_RETURN);
}
+bool Link::GetAccessibleRole(AccessibilityTypes::Role* role) {
+ DCHECK(role);
+
+ *role = AccessibilityTypes::ROLE_LINK;
+ return true;
+}
+
+bool Link::GetAccessibleName(std::wstring* name) {
+ DCHECK(name);
+
+ *name = GetText();
+ return !name->empty();
+}
+
void Link::SetFont(const gfx::Font& font) {
Label::SetFont(font);
ValidateStyle();