OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/accessibility/ax_node_data.h" | 5 #include "ui/accessibility/ax_node_data.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <set> | 10 #include <set> |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 if (state & (1 << AX_STATE_CHECKED)) | 266 if (state & (1 << AX_STATE_CHECKED)) |
267 result += " CHECKED"; | 267 result += " CHECKED"; |
268 if (state & (1 << AX_STATE_COLLAPSED)) | 268 if (state & (1 << AX_STATE_COLLAPSED)) |
269 result += " COLLAPSED"; | 269 result += " COLLAPSED"; |
270 if (state & (1 << AX_STATE_EDITABLE)) | 270 if (state & (1 << AX_STATE_EDITABLE)) |
271 result += " EDITABLE"; | 271 result += " EDITABLE"; |
272 if (state & (1 << AX_STATE_EXPANDED)) | 272 if (state & (1 << AX_STATE_EXPANDED)) |
273 result += " EXPANDED"; | 273 result += " EXPANDED"; |
274 if (state & (1 << AX_STATE_FOCUSABLE)) | 274 if (state & (1 << AX_STATE_FOCUSABLE)) |
275 result += " FOCUSABLE"; | 275 result += " FOCUSABLE"; |
276 if (state & (1 << AX_STATE_FOCUSED)) | |
277 result += " FOCUSED"; | |
278 if (state & (1 << AX_STATE_HASPOPUP)) | 276 if (state & (1 << AX_STATE_HASPOPUP)) |
279 result += " HASPOPUP"; | 277 result += " HASPOPUP"; |
280 if (state & (1 << AX_STATE_HOVERED)) | 278 if (state & (1 << AX_STATE_HOVERED)) |
281 result += " HOVERED"; | 279 result += " HOVERED"; |
282 if (state & (1 << AX_STATE_INVISIBLE)) | 280 if (state & (1 << AX_STATE_INVISIBLE)) |
283 result += " INVISIBLE"; | 281 result += " INVISIBLE"; |
284 if (state & (1 << AX_STATE_LINKED)) | 282 if (state & (1 << AX_STATE_LINKED)) |
285 result += " LINKED"; | 283 result += " LINKED"; |
286 if (state & (1 << AX_STATE_MULTISELECTABLE)) | 284 if (state & (1 << AX_STATE_MULTISELECTABLE)) |
287 result += " MULTISELECTABLE"; | 285 result += " MULTISELECTABLE"; |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 bool AXNodeData::IsRoot() const { | 639 bool AXNodeData::IsRoot() const { |
642 return (role == AX_ROLE_ROOT_WEB_AREA || | 640 return (role == AX_ROLE_ROOT_WEB_AREA || |
643 role == AX_ROLE_DESKTOP); | 641 role == AX_ROLE_DESKTOP); |
644 } | 642 } |
645 | 643 |
646 void AXNodeData::SetRoot() { | 644 void AXNodeData::SetRoot() { |
647 role = AX_ROLE_ROOT_WEB_AREA; | 645 role = AX_ROLE_ROOT_WEB_AREA; |
648 } | 646 } |
649 | 647 |
650 } // namespace ui | 648 } // namespace ui |
OLD | NEW |