| 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 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 using webkit_glue::WebAccessibility; | 23 using webkit_glue::WebAccessibility; |
| 24 | 24 |
| 25 struct ViewHostMsg_AccessibilityNotification_Params; | 25 struct ViewHostMsg_AccessibilityNotification_Params; |
| 26 | 26 |
| 27 // Class that can perform actions on behalf of the BrowserAccessibilityManager. | 27 // Class that can perform actions on behalf of the BrowserAccessibilityManager. |
| 28 class CONTENT_EXPORT BrowserAccessibilityDelegate { | 28 class CONTENT_EXPORT BrowserAccessibilityDelegate { |
| 29 public: | 29 public: |
| 30 virtual ~BrowserAccessibilityDelegate() {} | 30 virtual ~BrowserAccessibilityDelegate() {} |
| 31 virtual void SetAccessibilityFocus(int acc_obj_id) = 0; | 31 virtual void SetAccessibilityFocus(int acc_obj_id) = 0; |
| 32 virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0; | 32 virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0; |
| 33 virtual bool HasFocus() = 0; | 33 virtual bool HasFocus() const = 0; |
| 34 virtual gfx::Rect GetViewBounds() const = 0; | 34 virtual gfx::Rect GetViewBounds() const = 0; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 class CONTENT_EXPORT BrowserAccessibilityFactory { | 37 class CONTENT_EXPORT BrowserAccessibilityFactory { |
| 38 public: | 38 public: |
| 39 virtual ~BrowserAccessibilityFactory() {} | 39 virtual ~BrowserAccessibilityFactory() {} |
| 40 | 40 |
| 41 // Create an instance of BrowserAccessibility and return a new | 41 // Create an instance of BrowserAccessibility and return a new |
| 42 // reference to it. | 42 // reference to it. |
| 43 virtual BrowserAccessibility* Create(); | 43 virtual BrowserAccessibility* Create(); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // we use internally here. | 162 // we use internally here. |
| 163 base::hash_map<int32, int32> renderer_id_to_child_id_map_; | 163 base::hash_map<int32, int32> renderer_id_to_child_id_map_; |
| 164 | 164 |
| 165 // A mapping from child IDs to BrowserAccessibility objects. | 165 // A mapping from child IDs to BrowserAccessibility objects. |
| 166 base::hash_map<int32, BrowserAccessibility*> child_id_map_; | 166 base::hash_map<int32, BrowserAccessibility*> child_id_map_; |
| 167 | 167 |
| 168 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 168 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 171 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |