| OLD | NEW |
| 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 Loading... |
| 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. |
| OLD | NEW |