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