Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager.h

Issue 2748463003: Generalize the HIT_TEST accessibility action so that it can send any event. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 // Called when a new find in page result is received. We hold on to this 224 // Called when a new find in page result is received. We hold on to this
225 // information and don't activate it until the user requests it. 225 // information and don't activate it until the user requests it.
226 void OnFindInPageResult( 226 void OnFindInPageResult(
227 int request_id, int match_index, int start_id, int start_offset, 227 int request_id, int match_index, int start_id, int start_offset,
228 int end_id, int end_offset); 228 int end_id, int end_offset);
229 229
230 // Called in response to a hit test, when the object hit has a child frame 230 // Called in response to a hit test, when the object hit has a child frame
231 // (like an iframe element or browser plugin), and we need to do another 231 // (like an iframe element or browser plugin), and we need to do another
232 // hit test recursively. 232 // hit test recursively.
233 void OnChildFrameHitTestResult(const gfx::Point& point, int hit_obj_id); 233 void OnChildFrameHitTestResult(const gfx::Point& point,
234 int hit_obj_id,
235 ui::AXEvent event_to_fire);
234 236
235 // This is called when the user has committed to a find in page query, 237 // This is called when the user has committed to a find in page query,
236 // e.g. by pressing enter or tapping on the next / previous result buttons. 238 // e.g. by pressing enter or tapping on the next / previous result buttons.
237 // If a match has already been received for this request id, 239 // If a match has already been received for this request id,
238 // activate the result now by firing an accessibility event. If a match 240 // activate the result now by firing an accessibility event. If a match
239 // has not been received, we hold onto this request id and update it 241 // has not been received, we hold onto this request id and update it
240 // when OnFindInPageResult is called. 242 // when OnFindInPageResult is called.
241 void ActivateFindInPageResult(int request_id); 243 void ActivateFindInPageResult(int request_id);
242 244
243 #if defined(OS_WIN) 245 #if defined(OS_WIN)
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 // speed so that it can be accessed quickly if it hasn't changed. 469 // speed so that it can be accessed quickly if it hasn't changed.
468 int parent_node_id_from_parent_tree_; 470 int parent_node_id_from_parent_tree_;
469 471
470 private: 472 private:
471 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); 473 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager);
472 }; 474 };
473 475
474 } // namespace content 476 } // namespace content
475 477
476 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 478 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698