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

Side by Side Diff: content/renderer/accessibility/renderer_accessibility_complete.h

Issue 290633002: Implement Android accessible hit testing using an IPC to the renderer process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@better_logging_2
Patch Set: Tweak to algorithm to find highest leaf ancestor Created 6 years, 7 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_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_ 5 #ifndef CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_
6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_ 6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 private: 64 private:
65 // Handlers for messages from the browser to the renderer. 65 // Handlers for messages from the browser to the renderer.
66 void OnDoDefaultAction(int acc_obj_id); 66 void OnDoDefaultAction(int acc_obj_id);
67 void OnEventsAck(); 67 void OnEventsAck();
68 void OnChangeScrollPosition(int acc_obj_id, int scroll_x, int scroll_y); 68 void OnChangeScrollPosition(int acc_obj_id, int scroll_x, int scroll_y);
69 void OnScrollToMakeVisible(int acc_obj_id, gfx::Rect subfocus); 69 void OnScrollToMakeVisible(int acc_obj_id, gfx::Rect subfocus);
70 void OnScrollToPoint(int acc_obj_id, gfx::Point point); 70 void OnScrollToPoint(int acc_obj_id, gfx::Point point);
71 void OnSetFocus(int acc_obj_id); 71 void OnSetFocus(int acc_obj_id);
72 void OnSetTextSelection(int acc_obj_id, int start_offset, int end_offset); 72 void OnSetTextSelection(int acc_obj_id, int start_offset, int end_offset);
73 void OnHitTest(gfx::Point point);
73 void OnFatalError(); 74 void OnFatalError();
74 75
75 // Checks if a Blink accessibility object is an editable text node. 76 // Checks if a Blink accessibility object is an editable text node.
76 bool IsEditableText(const blink::WebAXObject& node); 77 bool IsEditableText(const blink::WebAXObject& node);
77 78
78 // Recursively explore the tree of Blink accessibility objects rooted 79 // Recursively explore the tree of Blink accessibility objects rooted
79 // at |src|, and for each editable text node encountered, add a 80 // at |src|, and for each editable text node encountered, add a
80 // corresponding WebAccessibility node as a child of |dst|. 81 // corresponding WebAccessibility node as a child of |dst|.
81 void RecursiveAddEditableTextNodesToTree( 82 void RecursiveAddEditableTextNodesToTree(
82 const blink::WebAXObject& src, 83 const blink::WebAXObject& src,
(...skipping 22 matching lines...) Expand all
105 106
106 // Set if we are waiting for an accessibility event ack. 107 // Set if we are waiting for an accessibility event ack.
107 bool ack_pending_; 108 bool ack_pending_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(RendererAccessibilityComplete); 110 DISALLOW_COPY_AND_ASSIGN(RendererAccessibilityComplete);
110 }; 111 };
111 112
112 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_ 113 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_
113 114
114 } // namespace content 115 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698