| 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 #ifndef WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_IMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
| 9 #include "webkit/glue/webaccessibilitymanager.h" | 9 #include "webkit/glue/webaccessibilitymanager.h" |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // From WebAccessibilityManager. | 28 // From WebAccessibilityManager. |
| 29 bool GetAccObjInfo(WebView* view, const WebAccessibility::InParams& in_params, | 29 bool GetAccObjInfo(WebView* view, const WebAccessibility::InParams& in_params, |
| 30 WebAccessibility::OutParams* out_params); | 30 WebAccessibility::OutParams* out_params); |
| 31 bool ClearAccObjMap(int acc_obj_id, bool clear_all); | 31 bool ClearAccObjMap(int acc_obj_id, bool clear_all); |
| 32 int FocusAccObj(WebCore::AccessibilityObject* acc_obj); | 32 int FocusAccObj(WebCore::AccessibilityObject* acc_obj); |
| 33 | 33 |
| 34 protected: | 34 protected: |
| 35 // Needed so WebAccessibilityManager::Create can call our constructor. | 35 // Needed so WebAccessibilityManager::Create can call our constructor. |
| 36 friend class WebAccessibilityManager; | 36 friend class WebAccessibilityManager; |
| 37 | 37 |
| 38 // Constructor creates a new GlueAccessibilityObjectRoot, and initializes |
| 39 // the root |acc_obj_id_| to 1000, to avoid conflicts with platform-specific |
| 40 // child ids. |
| 38 WebAccessibilityManagerImpl(); | 41 WebAccessibilityManagerImpl(); |
| 39 ~WebAccessibilityManagerImpl(); | 42 ~WebAccessibilityManagerImpl(); |
| 40 | 43 |
| 41 private: | 44 private: |
| 42 // From WebAccessibilityManager. | 45 // From WebAccessibilityManager. |
| 43 bool InitAccObjRoot(WebView* view); | 46 bool InitAccObjRoot(WebView* view); |
| 44 | 47 |
| 45 // Wrapper around the pointer that holds the root of the AccessibilityObject | 48 // Wrapper around the pointer that holds the root of the AccessibilityObject |
| 46 // tree, to allow the use of a scoped_refptr. | 49 // tree, to allow the use of a scoped_refptr. |
| 47 struct GlueAccessibilityObjectRoot; | 50 struct GlueAccessibilityObjectRoot; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 63 // hashmaps. Id is always 0 for the root of the accessibility object | 66 // hashmaps. Id is always 0 for the root of the accessibility object |
| 64 // hierarchy (on a per-renderer process basis). | 67 // hierarchy (on a per-renderer process basis). |
| 65 int acc_obj_id_; | 68 int acc_obj_id_; |
| 66 | 69 |
| 67 DISALLOW_COPY_AND_ASSIGN(WebAccessibilityManagerImpl); | 70 DISALLOW_COPY_AND_ASSIGN(WebAccessibilityManagerImpl); |
| 68 }; | 71 }; |
| 69 | 72 |
| 70 } // namespace webkit_glue | 73 } // namespace webkit_glue |
| 71 | 74 |
| 72 #endif // WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_IMPL_H_ | 75 #endif // WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_IMPL_H_ |
| OLD | NEW |