| 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 } | 436 } |
| 437 | 437 |
| 438 ui::AXMarkerType AXMarkerTypeFromBlink(blink::WebAXMarkerType marker_type) { | 438 ui::AXMarkerType AXMarkerTypeFromBlink(blink::WebAXMarkerType marker_type) { |
| 439 switch (marker_type) { | 439 switch (marker_type) { |
| 440 case blink::kWebAXMarkerTypeSpelling: | 440 case blink::kWebAXMarkerTypeSpelling: |
| 441 return ui::AX_MARKER_TYPE_SPELLING; | 441 return ui::AX_MARKER_TYPE_SPELLING; |
| 442 case blink::kWebAXMarkerTypeGrammar: | 442 case blink::kWebAXMarkerTypeGrammar: |
| 443 return ui::AX_MARKER_TYPE_GRAMMAR; | 443 return ui::AX_MARKER_TYPE_GRAMMAR; |
| 444 case blink::kWebAXMarkerTypeTextMatch: | 444 case blink::kWebAXMarkerTypeTextMatch: |
| 445 return ui::AX_MARKER_TYPE_TEXT_MATCH; | 445 return ui::AX_MARKER_TYPE_TEXT_MATCH; |
| 446 case blink::kWebAXMarkerTypeActiveSuggestion: |
| 447 return ui::AX_MARKER_TYPE_ACTIVE_SUGGESTION; |
| 446 } | 448 } |
| 447 NOTREACHED(); | 449 NOTREACHED(); |
| 448 return ui::AX_MARKER_TYPE_NONE; | 450 return ui::AX_MARKER_TYPE_NONE; |
| 449 } | 451 } |
| 450 | 452 |
| 451 ui::AXTextDirection AXTextDirectionFromBlink( | 453 ui::AXTextDirection AXTextDirectionFromBlink( |
| 452 blink::WebAXTextDirection text_direction) { | 454 blink::WebAXTextDirection text_direction) { |
| 453 switch (text_direction) { | 455 switch (text_direction) { |
| 454 case blink::kWebAXTextDirectionLR: | 456 case blink::kWebAXTextDirectionLR: |
| 455 return ui::AX_TEXT_DIRECTION_LTR; | 457 return ui::AX_TEXT_DIRECTION_LTR; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 case blink::kWebAXTextAffinityUpstream: | 604 case blink::kWebAXTextAffinityUpstream: |
| 603 return ui::AX_TEXT_AFFINITY_UPSTREAM; | 605 return ui::AX_TEXT_AFFINITY_UPSTREAM; |
| 604 case blink::kWebAXTextAffinityDownstream: | 606 case blink::kWebAXTextAffinityDownstream: |
| 605 return ui::AX_TEXT_AFFINITY_DOWNSTREAM; | 607 return ui::AX_TEXT_AFFINITY_DOWNSTREAM; |
| 606 } | 608 } |
| 607 NOTREACHED(); | 609 NOTREACHED(); |
| 608 return ui::AX_TEXT_AFFINITY_DOWNSTREAM; | 610 return ui::AX_TEXT_AFFINITY_DOWNSTREAM; |
| 609 } | 611 } |
| 610 | 612 |
| 611 } // namespace content. | 613 } // namespace content. |
| OLD | NEW |