| 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_RENDERER_ACCESSIBILITY_H_ | 5 #ifndef CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ |
| 6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ | 6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // Check the entire accessibility tree to see if any nodes have | 94 // Check the entire accessibility tree to see if any nodes have |
| 95 // changed location, by comparing their locations to the cached | 95 // changed location, by comparing their locations to the cached |
| 96 // versions. If any have moved, send an IPC with the new locations. | 96 // versions. If any have moved, send an IPC with the new locations. |
| 97 void SendLocationChanges(); | 97 void SendLocationChanges(); |
| 98 | 98 |
| 99 // The RenderFrameImpl that owns us. | 99 // The RenderFrameImpl that owns us. |
| 100 RenderFrameImpl* render_frame_; | 100 RenderFrameImpl* render_frame_; |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 // RenderFrameObserver implementation. |
| 104 void OnDestruct() override; |
| 105 |
| 103 // Handlers for messages from the browser to the renderer. | 106 // Handlers for messages from the browser to the renderer. |
| 104 void OnDoDefaultAction(int acc_obj_id); | 107 void OnDoDefaultAction(int acc_obj_id); |
| 105 void OnEventsAck(); | 108 void OnEventsAck(); |
| 106 void OnFatalError(); | 109 void OnFatalError(); |
| 107 void OnHitTest(gfx::Point point); | 110 void OnHitTest(gfx::Point point); |
| 108 void OnSetAccessibilityFocus(int acc_obj_id); | 111 void OnSetAccessibilityFocus(int acc_obj_id); |
| 109 void OnReset(int reset_token); | 112 void OnReset(int reset_token); |
| 110 void OnScrollToMakeVisible(int acc_obj_id, gfx::Rect subfocus); | 113 void OnScrollToMakeVisible(int acc_obj_id, gfx::Rect subfocus); |
| 111 void OnScrollToPoint(int acc_obj_id, gfx::Point point); | 114 void OnScrollToPoint(int acc_obj_id, gfx::Point point); |
| 112 void OnSetScrollOffset(int acc_obj_id, gfx::Point offset); | 115 void OnSetScrollOffset(int acc_obj_id, gfx::Point offset); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 152 |
| 150 // So we can queue up tasks to be executed later. | 153 // So we can queue up tasks to be executed later. |
| 151 base::WeakPtrFactory<RendererAccessibility> weak_factory_; | 154 base::WeakPtrFactory<RendererAccessibility> weak_factory_; |
| 152 | 155 |
| 153 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); | 156 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); |
| 154 }; | 157 }; |
| 155 | 158 |
| 156 } // namespace content | 159 } // namespace content |
| 157 | 160 |
| 158 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ | 161 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ |
| OLD | NEW |