| Index: ui/views/controls/label.cc
|
| diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
|
| index 9b04c091ff1ab436580068f0d8a18cb0e9526562..a047acbd51c35cdec04f00955df331f2eda11563 100644
|
| --- a/ui/views/controls/label.cc
|
| +++ b/ui/views/controls/label.cc
|
| @@ -395,6 +395,10 @@ bool Label::CanProcessEventsWithinSubtree() const {
|
| return !!GetRenderTextForSelectionController();
|
| }
|
|
|
| +WordLookupClient* Label::GetWordLookupClient() {
|
| + return this;
|
| +}
|
| +
|
| void Label::GetAccessibleNodeData(ui::AXNodeData* node_data) {
|
| node_data->role = ui::AX_ROLE_STATIC_TEXT;
|
| node_data->AddStateFlag(ui::AX_STATE_READ_ONLY);
|
| @@ -633,6 +637,16 @@ void Label::ShowContextMenuForView(View* source,
|
| source_type));
|
| }
|
|
|
| +bool Label::GetDecoratedWordAtPoint(const gfx::Point& point,
|
| + gfx::DecoratedText* decorated_word,
|
| + gfx::Point* baseline_point) {
|
| + gfx::RenderText* render_text = GetRenderTextForSelectionController();
|
| + return render_text
|
| + ? render_text->GetDecoratedWordAtPoint(point, decorated_word,
|
| + baseline_point)
|
| + : false;
|
| +}
|
| +
|
| gfx::RenderText* Label::GetRenderTextForSelectionController() {
|
| return const_cast<gfx::RenderText*>(
|
| static_cast<const Label*>(this)->GetRenderTextForSelectionController());
|
|
|