| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 11 #include "webkit/tools/test_shell/accessibility_ui_element.h" | 11 #include "webkit/tools/test_shell/accessibility_ui_element.h" |
| 12 | 12 |
| 13 using WebKit::WebCString; | 13 using WebKit::WebCString; |
| 14 using WebKit::WebString; | 14 using WebKit::WebString; |
| 15 using WebKit::WebAccessibilityObject; | 15 using WebKit::WebAccessibilityObject; |
| 16 using WebKit::WebAccessibilityRole; | 16 using WebKit::WebAccessibilityRole; |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 // Map role value to string, matching Safari/Mac platform implementation to | 20 // Map role value to string, matching Safari/Mac platform implementation to |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 return element; | 622 return element; |
| 623 } | 623 } |
| 624 | 624 |
| 625 AccessibilityUIElement* AccessibilityUIElementList::CreateRoot( | 625 AccessibilityUIElement* AccessibilityUIElementList::CreateRoot( |
| 626 const WebAccessibilityObject& object) { | 626 const WebAccessibilityObject& object) { |
| 627 AccessibilityUIElement* element = | 627 AccessibilityUIElement* element = |
| 628 new RootAccessibilityUIElement(object, this); | 628 new RootAccessibilityUIElement(object, this); |
| 629 elements_.push_back(element); | 629 elements_.push_back(element); |
| 630 return element; | 630 return element; |
| 631 } | 631 } |
| OLD | NEW |