| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_tree_source.h" | 5 #include "content/renderer/accessibility/blink_ax_tree_source.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 case ui::AX_ROLE_COMPLEMENTARY: | 71 case ui::AX_ROLE_COMPLEMENTARY: |
| 72 return "complementary"; | 72 return "complementary"; |
| 73 case ui::AX_ROLE_FOOTER: | 73 case ui::AX_ROLE_FOOTER: |
| 74 return "contentinfo"; | 74 return "contentinfo"; |
| 75 case ui::AX_ROLE_HORIZONTAL_RULE: | 75 case ui::AX_ROLE_HORIZONTAL_RULE: |
| 76 return "separator"; | 76 return "separator"; |
| 77 case ui::AX_ROLE_IMAGE: | 77 case ui::AX_ROLE_IMAGE: |
| 78 return "img"; | 78 return "img"; |
| 79 case ui::AX_ROLE_MAIN: | 79 case ui::AX_ROLE_MAIN: |
| 80 return "main"; | 80 return "main"; |
| 81 case ui::AX_ROLE_MATH_ELEMENT: | |
| 82 return "math"; | |
| 83 case ui::AX_ROLE_NAVIGATION: | 81 case ui::AX_ROLE_NAVIGATION: |
| 84 return "navigation"; | 82 return "navigation"; |
| 85 case ui::AX_ROLE_RADIO_BUTTON: | 83 case ui::AX_ROLE_RADIO_BUTTON: |
| 86 return "radio"; | 84 return "radio"; |
| 87 case ui::AX_ROLE_REGION: | 85 case ui::AX_ROLE_REGION: |
| 88 return "region"; | 86 return "region"; |
| 89 case ui::AX_ROLE_SLIDER: | 87 case ui::AX_ROLE_SLIDER: |
| 90 return "slider"; | 88 return "slider"; |
| 91 default: | 89 default: |
| 92 break; | 90 break; |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 AddIntListAttributeFromWebObjects(ui::AX_ATTR_OWNS_IDS, owns, dst); | 549 AddIntListAttributeFromWebObjects(ui::AX_ATTR_OWNS_IDS, owns, dst); |
| 552 } | 550 } |
| 553 | 551 |
| 554 blink::WebDocument BlinkAXTreeSource::GetMainDocument() const { | 552 blink::WebDocument BlinkAXTreeSource::GetMainDocument() const { |
| 555 if (render_frame_ && render_frame_->GetWebFrame()) | 553 if (render_frame_ && render_frame_->GetWebFrame()) |
| 556 return render_frame_->GetWebFrame()->document(); | 554 return render_frame_->GetWebFrame()->document(); |
| 557 return WebDocument(); | 555 return WebDocument(); |
| 558 } | 556 } |
| 559 | 557 |
| 560 } // namespace content | 558 } // namespace content |
| OLD | NEW |