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

Side by Side Diff: content/renderer/accessibility/blink_ax_enum_conversion.cc

Issue 825853002: Expose br tag in AX Tree as ROLE_SYSTEM_WHITESPACE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding br as platform leaf Created 5 years, 11 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/renderer/accessibility/blink_ax_enum_conversion.h" 5 #include "content/renderer/accessibility/blink_ax_enum_conversion.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 case blink::WebAXRoleTreeGrid: 307 case blink::WebAXRoleTreeGrid:
308 return ui::AX_ROLE_TREE_GRID; 308 return ui::AX_ROLE_TREE_GRID;
309 case blink::WebAXRoleTreeItem: 309 case blink::WebAXRoleTreeItem:
310 return ui::AX_ROLE_TREE_ITEM; 310 return ui::AX_ROLE_TREE_ITEM;
311 case blink::WebAXRoleUnknown: 311 case blink::WebAXRoleUnknown:
312 return ui::AX_ROLE_UNKNOWN; 312 return ui::AX_ROLE_UNKNOWN;
313 case blink::WebAXRoleUserInterfaceTooltip: 313 case blink::WebAXRoleUserInterfaceTooltip:
314 return ui::AX_ROLE_TOOLTIP; 314 return ui::AX_ROLE_TOOLTIP;
315 case blink::WebAXRoleWebArea: 315 case blink::WebAXRoleWebArea:
316 return ui::AX_ROLE_WEB_AREA; 316 return ui::AX_ROLE_WEB_AREA;
317 case blink::WebAXRoleLineBreak:
318 return ui::AX_ROLE_LINE_BREAK;
317 case blink::WebAXRoleWindow: 319 case blink::WebAXRoleWindow:
318 return ui::AX_ROLE_WINDOW; 320 return ui::AX_ROLE_WINDOW;
319 default: 321 default:
320 // We can't add an assertion here, that prevents us 322 // We can't add an assertion here, that prevents us
321 // from adding new role enums in Blink. 323 // from adding new role enums in Blink.
322 LOG(WARNING) << "Warning: Blink WebAXRole " << role 324 LOG(WARNING) << "Warning: Blink WebAXRole " << role
323 << " not handled by Chromium yet."; 325 << " not handled by Chromium yet.";
324 return ui::AX_ROLE_UNKNOWN; 326 return ui::AX_ROLE_UNKNOWN;
325 } 327 }
326 } 328 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 case blink::WebAXTextDirectionBT: 394 case blink::WebAXTextDirectionBT:
393 return ui::AX_TEXT_DIRECTION_BT; 395 return ui::AX_TEXT_DIRECTION_BT;
394 default: 396 default:
395 NOTREACHED(); 397 NOTREACHED();
396 } 398 }
397 399
398 return ui::AX_TEXT_DIRECTION_NONE; 400 return ui::AX_TEXT_DIRECTION_NONE;
399 } 401 }
400 402
401 } // namespace content 403 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698