Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Side by Side Diff: ui/accessibility/ax_node_data.cc

Issue 1589623002: Keep track of accessibility focus across windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final suggestions Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_tree_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_tree_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698