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_RENDERER_ACCESSIBILITY_RENDER_ACCESSIBILITY_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_ACCESSIBILITY_RENDER_ACCESSIBILITY_IMPL_H_ |
6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDER_ACCESSIBILITY_IMPL_H_ | 6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDER_ACCESSIBILITY_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 private: | 118 private: |
119 // RenderFrameObserver implementation. | 119 // RenderFrameObserver implementation. |
120 void OnDestruct() override; | 120 void OnDestruct() override; |
121 | 121 |
122 // Handlers for messages from the browser to the renderer. | 122 // Handlers for messages from the browser to the renderer. |
123 void OnPerformAction(const ui::AXActionData& data); | 123 void OnPerformAction(const ui::AXActionData& data); |
124 void OnEventsAck(int ack_token); | 124 void OnEventsAck(int ack_token); |
125 void OnFatalError(); | 125 void OnFatalError(); |
126 void OnReset(int reset_token); | 126 void OnReset(int reset_token); |
127 | 127 |
128 void OnHitTest(const gfx::Point& point); | 128 void OnHitTest(const gfx::Point& point, ui::AXEvent event_to_fire); |
129 void OnSetAccessibilityFocus(const blink::WebAXObject& obj); | 129 void OnSetAccessibilityFocus(const blink::WebAXObject& obj); |
130 void OnGetImageData(const blink::WebAXObject& obj, const gfx::Size& max_size); | 130 void OnGetImageData(const blink::WebAXObject& obj, const gfx::Size& max_size); |
131 void AddPluginTreeToUpdate(AXContentTreeUpdate* update); | 131 void AddPluginTreeToUpdate(AXContentTreeUpdate* update); |
132 void ScrollPlugin(int id_to_make_visible); | 132 void ScrollPlugin(int id_to_make_visible); |
133 | 133 |
134 // Events from Blink are collected until they are ready to be | 134 // Events from Blink are collected until they are ready to be |
135 // sent to the browser. | 135 // sent to the browser. |
136 std::vector<AccessibilityHostMsg_EventParams> pending_events_; | 136 std::vector<AccessibilityHostMsg_EventParams> pending_events_; |
137 | 137 |
138 // The adapter that exposes Blink's accessibility tree to AXTreeSerializer. | 138 // The adapter that exposes Blink's accessibility tree to AXTreeSerializer. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 174 |
175 // So we can queue up tasks to be executed later. | 175 // So we can queue up tasks to be executed later. |
176 base::WeakPtrFactory<RenderAccessibilityImpl> weak_factory_; | 176 base::WeakPtrFactory<RenderAccessibilityImpl> weak_factory_; |
177 | 177 |
178 DISALLOW_COPY_AND_ASSIGN(RenderAccessibilityImpl); | 178 DISALLOW_COPY_AND_ASSIGN(RenderAccessibilityImpl); |
179 }; | 179 }; |
180 | 180 |
181 } // namespace content | 181 } // namespace content |
182 | 182 |
183 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ | 183 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ |
OLD | NEW |