| 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/glue/glue_accessibility_object.h" | 16 #include "webkit/glue/glue_accessibility_object.h" |
| 17 #include "webkit/glue/glue_util.h" | 17 #include "webkit/glue/glue_util.h" |
| 18 #include "webkit/glue/webframe_impl.h" | 18 #include "webkit/glue/webframe_impl.h" |
| 19 #include "webkit/glue/webview_impl.h" | 19 #include "webkit/glue/webview_impl.h" |
| 20 | 20 |
| 21 using WebKit::WebAccessibilityObject; | 21 using WebKit::WebAccessibilityObject; |
| 22 using WebKit::WebView; |
| 22 | 23 |
| 23 namespace webkit_glue { | 24 namespace webkit_glue { |
| 24 | 25 |
| 25 // struct WebAccessibilityManagerImpl::GlueAccessibilityObjectRoot | 26 // struct WebAccessibilityManagerImpl::GlueAccessibilityObjectRoot |
| 26 struct WebAccessibilityManagerImpl::GlueAccessibilityObjectRoot { | 27 struct WebAccessibilityManagerImpl::GlueAccessibilityObjectRoot { |
| 27 GlueAccessibilityObjectRoot() {} | 28 GlueAccessibilityObjectRoot() {} |
| 28 | 29 |
| 29 // Root of the WebKit AccessibilityObject tree. | 30 // Root of the WebKit AccessibilityObject tree. |
| 30 RefPtr<GlueAccessibilityObject> acc_obj_root_; | 31 RefPtr<GlueAccessibilityObject> acc_obj_root_; |
| 31 }; | 32 }; |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // Insert new accessibility object in hashmaps and return its newly | 279 // Insert new accessibility object in hashmaps and return its newly |
| 279 // assigned accessibility object id. | 280 // assigned accessibility object id. |
| 280 int_to_glue_acc_obj_map_[acc_obj_id_] = | 281 int_to_glue_acc_obj_map_[acc_obj_id_] = |
| 281 GlueAccessibilityObject::CreateInstance(acc_obj.get()); | 282 GlueAccessibilityObject::CreateInstance(acc_obj.get()); |
| 282 acc_obj_to_int_map_[acc_obj.get()] = acc_obj_id_; | 283 acc_obj_to_int_map_[acc_obj.get()] = acc_obj_id_; |
| 283 | 284 |
| 284 return acc_obj_id_++; | 285 return acc_obj_id_++; |
| 285 } | 286 } |
| 286 | 287 |
| 287 } // namespace webkit_glue | 288 } // namespace webkit_glue |
| OLD | NEW |