diff options
Diffstat (limited to 'views/view.cc')
-rw-r--r-- | views/view.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/views/view.cc b/views/view.cc index c5359a7..3bdb2a2 100644 --- a/views/view.cc +++ b/views/view.cc @@ -1123,6 +1123,19 @@ bool View::InDrag() { return root_view ? (root_view->GetDragView() == this) : false; } +bool View::GetAccessibleName(std::wstring* name) { + DCHECK(name); + + if (accessible_name_.empty()) + return false; + *name = accessible_name_; + return true; +} + +void View::SetAccessibleName(const std::wstring& name) { + accessible_name_ = name; +} + // static void View::ConvertPointToView(const View* src, const View* dst, |