| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 case ui::AX_ROLE_ARTICLE: | 65 case ui::AX_ROLE_ARTICLE: |
| 66 return "article"; | 66 return "article"; |
| 67 case ui::AX_ROLE_BANNER: | 67 case ui::AX_ROLE_BANNER: |
| 68 return "banner"; | 68 return "banner"; |
| 69 case ui::AX_ROLE_BUTTON: | 69 case ui::AX_ROLE_BUTTON: |
| 70 return "button"; | 70 return "button"; |
| 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: | |
| 76 return "separator"; | |
| 77 case ui::AX_ROLE_IMAGE: | 75 case ui::AX_ROLE_IMAGE: |
| 78 return "img"; | 76 return "img"; |
| 79 case ui::AX_ROLE_MAIN: | 77 case ui::AX_ROLE_MAIN: |
| 80 return "main"; | 78 return "main"; |
| 81 case ui::AX_ROLE_NAVIGATION: | 79 case ui::AX_ROLE_NAVIGATION: |
| 82 return "navigation"; | 80 return "navigation"; |
| 83 case ui::AX_ROLE_RADIO_BUTTON: | 81 case ui::AX_ROLE_RADIO_BUTTON: |
| 84 return "radio"; | 82 return "radio"; |
| 85 case ui::AX_ROLE_REGION: | 83 case ui::AX_ROLE_REGION: |
| 86 return "region"; | 84 return "region"; |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 AddIntListAttributeFromWebObjects(ui::AX_ATTR_OWNS_IDS, owns, dst); | 547 AddIntListAttributeFromWebObjects(ui::AX_ATTR_OWNS_IDS, owns, dst); |
| 550 } | 548 } |
| 551 | 549 |
| 552 blink::WebDocument BlinkAXTreeSource::GetMainDocument() const { | 550 blink::WebDocument BlinkAXTreeSource::GetMainDocument() const { |
| 553 if (render_frame_ && render_frame_->GetWebFrame()) | 551 if (render_frame_ && render_frame_->GetWebFrame()) |
| 554 return render_frame_->GetWebFrame()->document(); | 552 return render_frame_->GetWebFrame()->document(); |
| 555 return WebDocument(); | 553 return WebDocument(); |
| 556 } | 554 } |
| 557 | 555 |
| 558 } // namespace content | 556 } // namespace content |
| OLD | NEW |