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

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

Issue 744843002: Added the aria-sort state to the accessibility tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Android test expectations. Created 5 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
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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 return ui::AX_INVALID_STATE_GRAMMAR; 415 return ui::AX_INVALID_STATE_GRAMMAR;
416 case blink::WebAXInvalidStateOther: 416 case blink::WebAXInvalidStateOther:
417 return ui::AX_INVALID_STATE_OTHER; 417 return ui::AX_INVALID_STATE_OTHER;
418 default: 418 default:
419 NOTREACHED(); 419 NOTREACHED();
420 } 420 }
421 421
422 return ui::AX_INVALID_STATE_NONE; 422 return ui::AX_INVALID_STATE_NONE;
423 } 423 }
424 424
425 } // namespace content 425 ui::AXSortDirection AXSortDirectionFromBlink(
426 blink::WebAXSortDirection sort_direction) {
427 switch (sort_direction) {
428 case blink::WebAXSortDirectionUndefined:
429 return ui::AX_SORT_DIRECTION_NONE;
430 case blink::WebAXSortDirectionNone:
431 return ui::AX_SORT_DIRECTION_UNSORTED;
432 case blink::WebAXSortDirectionAscending:
433 return ui::AX_SORT_DIRECTION_ASCENDING;
434 case blink::WebAXSortDirectionDescending:
435 return ui::AX_SORT_DIRECTION_DESCENDING;
436 case blink::WebAXSortDirectionOther:
437 return ui::AX_SORT_DIRECTION_OTHER;
438 default:
439 NOTREACHED();
440 }
441
442 return ui::AX_SORT_DIRECTION_NONE;
443 }
444
445 } // Namespace content.
OLDNEW
« no previous file with comments | « content/renderer/accessibility/blink_ax_enum_conversion.h ('k') | content/renderer/accessibility/blink_ax_tree_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698