| 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 <memory> | 10 #include <memory> |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 // Called when a new find in page result is received. We hold on to this | 225 // Called when a new find in page result is received. We hold on to this |
| 226 // information and don't activate it until the user requests it. | 226 // information and don't activate it until the user requests it. |
| 227 void OnFindInPageResult( | 227 void OnFindInPageResult( |
| 228 int request_id, int match_index, int start_id, int start_offset, | 228 int request_id, int match_index, int start_id, int start_offset, |
| 229 int end_id, int end_offset); | 229 int end_id, int end_offset); |
| 230 | 230 |
| 231 // Called in response to a hit test, when the object hit has a child frame | 231 // Called in response to a hit test, when the object hit has a child frame |
| 232 // (like an iframe element or browser plugin), and we need to do another | 232 // (like an iframe element or browser plugin), and we need to do another |
| 233 // hit test recursively. | 233 // hit test recursively. |
| 234 void OnChildFrameHitTestResult(const gfx::Point& point, int hit_obj_id); | 234 void OnChildFrameHitTestResult(const gfx::Point& point, |
| 235 int hit_obj_id, |
| 236 ui::AXEvent event_to_fire); |
| 235 | 237 |
| 236 // This is called when the user has committed to a find in page query, | 238 // This is called when the user has committed to a find in page query, |
| 237 // e.g. by pressing enter or tapping on the next / previous result buttons. | 239 // e.g. by pressing enter or tapping on the next / previous result buttons. |
| 238 // If a match has already been received for this request id, | 240 // If a match has already been received for this request id, |
| 239 // activate the result now by firing an accessibility event. If a match | 241 // activate the result now by firing an accessibility event. If a match |
| 240 // has not been received, we hold onto this request id and update it | 242 // has not been received, we hold onto this request id and update it |
| 241 // when OnFindInPageResult is called. | 243 // when OnFindInPageResult is called. |
| 242 void ActivateFindInPageResult(int request_id); | 244 void ActivateFindInPageResult(int request_id); |
| 243 | 245 |
| 244 #if defined(OS_WIN) | 246 #if defined(OS_WIN) |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 // used and it won't be updated from the delegate. | 482 // used and it won't be updated from the delegate. |
| 481 bool use_custom_device_scale_factor_for_testing_; | 483 bool use_custom_device_scale_factor_for_testing_; |
| 482 | 484 |
| 483 private: | 485 private: |
| 484 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 486 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 485 }; | 487 }; |
| 486 | 488 |
| 487 } // namespace content | 489 } // namespace content |
| 488 | 490 |
| 489 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 491 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |