OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ui/views/controls/window_label.h" | |
6 | |
7 #include "ui/accessibility/ax_view_state.h" | |
8 #include "ui/views/controls/label.h" | |
9 | |
10 namespace views { | |
11 | |
12 WindowLabel::WindowLabel() : Label() { | |
13 } | |
14 WindowLabel::~WindowLabel() { | |
15 } | |
16 | |
17 void WindowLabel::GetAccessibleState(ui::AXViewState* state) { | |
18 // TODO(dmazzoni) Change role to "window" | |
tdanderson
2014/04/29 14:46:27
Add : after (dmazzoni), and add . at the end of th
Nina
2014/04/29 18:31:40
Done, and he does know the TODO. We should probabl
| |
19 state->role = ui::AX_ROLE_BUTTON; | |
20 state->AddStateFlag(ui::AX_STATE_READ_ONLY); | |
21 state->name = layout_text(); | |
22 } | |
23 | |
24 } // namespace views | |
OLD | NEW |