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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "content/common/content_export.h" |
14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
15 #include "webkit/glue/webaccessibility.h" | 16 #include "webkit/glue/webaccessibility.h" |
16 | 17 |
17 class BrowserAccessibility; | 18 class BrowserAccessibility; |
18 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
19 class BrowserAccessibilityManagerWin; | 20 class BrowserAccessibilityManagerWin; |
20 #endif | 21 #endif |
21 | 22 |
22 using webkit_glue::WebAccessibility; | 23 using webkit_glue::WebAccessibility; |
23 | 24 |
24 struct ViewHostMsg_AccessibilityNotification_Params; | 25 struct ViewHostMsg_AccessibilityNotification_Params; |
25 | 26 |
26 // Class that can perform actions on behalf of the BrowserAccessibilityManager. | 27 // Class that can perform actions on behalf of the BrowserAccessibilityManager. |
27 class BrowserAccessibilityDelegate { | 28 class CONTENT_EXPORT BrowserAccessibilityDelegate { |
28 public: | 29 public: |
29 virtual ~BrowserAccessibilityDelegate() {} | 30 virtual ~BrowserAccessibilityDelegate() {} |
30 virtual void SetAccessibilityFocus(int acc_obj_id) = 0; | 31 virtual void SetAccessibilityFocus(int acc_obj_id) = 0; |
31 virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0; | 32 virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0; |
32 virtual bool HasFocus() = 0; | 33 virtual bool HasFocus() = 0; |
33 virtual gfx::Rect GetViewBounds() const = 0; | 34 virtual gfx::Rect GetViewBounds() const = 0; |
34 }; | 35 }; |
35 | 36 |
36 class BrowserAccessibilityFactory { | 37 class BrowserAccessibilityFactory { |
37 public: | 38 public: |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // we use internally here. | 178 // we use internally here. |
178 base::hash_map<int32, int32> renderer_id_to_child_id_map_; | 179 base::hash_map<int32, int32> renderer_id_to_child_id_map_; |
179 | 180 |
180 // A mapping from child IDs to BrowserAccessibility objects. | 181 // A mapping from child IDs to BrowserAccessibility objects. |
181 base::hash_map<int32, BrowserAccessibility*> child_id_map_; | 182 base::hash_map<int32, BrowserAccessibility*> child_id_map_; |
182 | 183 |
183 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 184 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
184 }; | 185 }; |
185 | 186 |
186 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 187 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |