OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void DoDefaultAction(const BrowserAccessibility& node); | 107 void DoDefaultAction(const BrowserAccessibility& node); |
108 | 108 |
109 // Tell the renderer to scroll to make |node| visible. | 109 // Tell the renderer to scroll to make |node| visible. |
110 // In addition, if it's not possible to make the entire object visible, | 110 // In addition, if it's not possible to make the entire object visible, |
111 // scroll so that the |subfocus| rect is visible at least. The subfocus | 111 // scroll so that the |subfocus| rect is visible at least. The subfocus |
112 // rect is in local coordinates of the object itself. | 112 // rect is in local coordinates of the object itself. |
113 void ScrollToMakeVisible( | 113 void ScrollToMakeVisible( |
114 const BrowserAccessibility& node, gfx::Rect subfocus); | 114 const BrowserAccessibility& node, gfx::Rect subfocus); |
115 | 115 |
116 // Tell the renderer to scroll such that |node| is at |point|, | 116 // Tell the renderer to scroll such that |node| is at |point|, |
117 // where |point| is in global coordinates of the tab contents. | 117 // where |point| is in global coordinates of the WebContents. |
118 void ScrollToPoint( | 118 void ScrollToPoint( |
119 const BrowserAccessibility& node, gfx::Point point); | 119 const BrowserAccessibility& node, gfx::Point point); |
120 | 120 |
121 // Tell the renderer to set the text selection on a node. | 121 // Tell the renderer to set the text selection on a node. |
122 void SetTextSelection( | 122 void SetTextSelection( |
123 const BrowserAccessibility& node, int start_offset, int end_offset); | 123 const BrowserAccessibility& node, int start_offset, int end_offset); |
124 | 124 |
125 // Retrieve the bounds of the parent View in screen coordinates. | 125 // Retrieve the bounds of the parent View in screen coordinates. |
126 gfx::Rect GetViewBounds(); | 126 gfx::Rect GetViewBounds(); |
127 | 127 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // we use internally here. | 184 // we use internally here. |
185 base::hash_map<int32, int32> renderer_id_to_child_id_map_; | 185 base::hash_map<int32, int32> renderer_id_to_child_id_map_; |
186 | 186 |
187 // A mapping from child IDs to BrowserAccessibility objects. | 187 // A mapping from child IDs to BrowserAccessibility objects. |
188 base::hash_map<int32, BrowserAccessibility*> child_id_map_; | 188 base::hash_map<int32, BrowserAccessibility*> child_id_map_; |
189 | 189 |
190 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 190 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
191 }; | 191 }; |
192 | 192 |
193 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 193 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |