| 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 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // objects. | 238 // objects. |
| 239 virtual void OnLocationChanges( | 239 virtual void OnLocationChanges( |
| 240 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); | 240 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); |
| 241 | 241 |
| 242 // Called when a new find in page result is received. We hold on to this | 242 // Called when a new find in page result is received. We hold on to this |
| 243 // information and don't activate it until the user requests it. | 243 // information and don't activate it until the user requests it. |
| 244 void OnFindInPageResult( | 244 void OnFindInPageResult( |
| 245 int request_id, int match_index, int start_id, int start_offset, | 245 int request_id, int match_index, int start_id, int start_offset, |
| 246 int end_id, int end_offset); | 246 int end_id, int end_offset); |
| 247 | 247 |
| 248 // Called in response to a hit test, when the object hit has a child frame |
| 249 // (like an iframe element or browser plugin), and we need to do another |
| 250 // hit test recursively. |
| 251 void OnChildFrameHitTestResult(const gfx::Point& point, int hit_obj_id); |
| 252 |
| 248 // This is called when the user has committed to a find in page query, | 253 // This is called when the user has committed to a find in page query, |
| 249 // e.g. by pressing enter or tapping on the next / previous result buttons. | 254 // e.g. by pressing enter or tapping on the next / previous result buttons. |
| 250 // If a match has already been received for this request id, | 255 // If a match has already been received for this request id, |
| 251 // activate the result now by firing an accessibility event. If a match | 256 // activate the result now by firing an accessibility event. If a match |
| 252 // has not been received, we hold onto this request id and update it | 257 // has not been received, we hold onto this request id and update it |
| 253 // when OnFindInPageResult is called. | 258 // when OnFindInPageResult is called. |
| 254 void ActivateFindInPageResult(int request_id); | 259 void ActivateFindInPageResult(int request_id); |
| 255 | 260 |
| 256 #if defined(OS_WIN) | 261 #if defined(OS_WIN) |
| 257 BrowserAccessibilityManagerWin* ToBrowserAccessibilityManagerWin(); | 262 BrowserAccessibilityManagerWin* ToBrowserAccessibilityManagerWin(); |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 // node within that parent tree. It's computed as needed and cached for | 418 // node within that parent tree. It's computed as needed and cached for |
| 414 // speed so that it can be accessed quickly if it hasn't changed. | 419 // speed so that it can be accessed quickly if it hasn't changed. |
| 415 int parent_node_id_from_parent_tree_; | 420 int parent_node_id_from_parent_tree_; |
| 416 | 421 |
| 417 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 422 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 418 }; | 423 }; |
| 419 | 424 |
| 420 } // namespace content | 425 } // namespace content |
| 421 | 426 |
| 422 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 427 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |