| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "AXObjectCache.h" | 7 #include "AXObjectCache.h" |
| 8 #include "Document.h" | 8 #include "Document.h" |
| 9 #include "Frame.h" | 9 #include "Frame.h" |
| 10 #include "RefPtr.h" | 10 #include "RefPtr.h" |
| 11 #undef LOG | 11 #undef LOG |
| 12 | 12 |
| 13 #include "webkit/glue/webaccessibilitymanager_impl.h" | 13 #include "webkit/glue/webaccessibilitymanager_impl.h" |
| 14 | 14 |
| 15 #include "webkit/api/public/WebAccessibilityObject.h" | 15 #include "webkit/api/public/WebAccessibilityObject.h" |
| 16 #include "webkit/api/src/WebFrameImpl.h" |
| 17 #include "webkit/api/src/WebViewImpl.h" |
| 16 #include "webkit/glue/glue_accessibility_object.h" | 18 #include "webkit/glue/glue_accessibility_object.h" |
| 17 #include "webkit/glue/glue_util.h" | 19 #include "webkit/glue/glue_util.h" |
| 18 #include "webkit/glue/webframe_impl.h" | |
| 19 #include "webkit/glue/webview_impl.h" | |
| 20 | 20 |
| 21 using WebKit::WebAccessibilityObject; | 21 using WebKit::WebAccessibilityObject; |
| 22 using WebKit::WebFrameImpl; |
| 22 using WebKit::WebView; | 23 using WebKit::WebView; |
| 23 | 24 |
| 24 namespace webkit_glue { | 25 namespace webkit_glue { |
| 25 | 26 |
| 26 // struct WebAccessibilityManagerImpl::GlueAccessibilityObjectRoot | 27 // struct WebAccessibilityManagerImpl::GlueAccessibilityObjectRoot |
| 27 struct WebAccessibilityManagerImpl::GlueAccessibilityObjectRoot { | 28 struct WebAccessibilityManagerImpl::GlueAccessibilityObjectRoot { |
| 28 GlueAccessibilityObjectRoot() {} | 29 GlueAccessibilityObjectRoot() {} |
| 29 | 30 |
| 30 // Root of the WebKit AccessibilityObject tree. | 31 // Root of the WebKit AccessibilityObject tree. |
| 31 RefPtr<GlueAccessibilityObject> acc_obj_root_; | 32 RefPtr<GlueAccessibilityObject> acc_obj_root_; |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // Insert new accessibility object in hashmaps and return its newly | 280 // Insert new accessibility object in hashmaps and return its newly |
| 280 // assigned accessibility object id. | 281 // assigned accessibility object id. |
| 281 int_to_glue_acc_obj_map_[acc_obj_id_] = | 282 int_to_glue_acc_obj_map_[acc_obj_id_] = |
| 282 GlueAccessibilityObject::CreateInstance(acc_obj.get()); | 283 GlueAccessibilityObject::CreateInstance(acc_obj.get()); |
| 283 acc_obj_to_int_map_[acc_obj.get()] = acc_obj_id_; | 284 acc_obj_to_int_map_[acc_obj.get()] = acc_obj_id_; |
| 284 | 285 |
| 285 return acc_obj_id_++; | 286 return acc_obj_id_++; |
| 286 } | 287 } |
| 287 | 288 |
| 288 } // namespace webkit_glue | 289 } // namespace webkit_glue |
| OLD | NEW |