| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void OnDoDefaultAction(int acc_obj_id); | 103 void OnDoDefaultAction(int acc_obj_id); |
| 104 void OnEventsAck(); | 104 void OnEventsAck(); |
| 105 void OnFatalError(); | 105 void OnFatalError(); |
| 106 void OnHitTest(gfx::Point point); | 106 void OnHitTest(gfx::Point point); |
| 107 void OnSetAccessibilityFocus(int acc_obj_id); | 107 void OnSetAccessibilityFocus(int acc_obj_id); |
| 108 void OnReset(int reset_token); | 108 void OnReset(int reset_token); |
| 109 void OnScrollToMakeVisible(int acc_obj_id, gfx::Rect subfocus); | 109 void OnScrollToMakeVisible(int acc_obj_id, gfx::Rect subfocus); |
| 110 void OnScrollToPoint(int acc_obj_id, gfx::Point point); | 110 void OnScrollToPoint(int acc_obj_id, gfx::Point point); |
| 111 void OnSetScrollOffset(int acc_obj_id, gfx::Point offset); | 111 void OnSetScrollOffset(int acc_obj_id, gfx::Point offset); |
| 112 void OnSetFocus(int acc_obj_id); | 112 void OnSetFocus(int acc_obj_id); |
| 113 void OnSetTextSelection(int acc_obj_id, int start_offset, int end_offset); | 113 void OnSetSelection(int anchor_acc_obj_id, |
| 114 int anchor_offset, |
| 115 int focus_acc_obj_id, |
| 116 int focus_offset); |
| 114 void OnSetValue(int acc_obj_id, base::string16 value); | 117 void OnSetValue(int acc_obj_id, base::string16 value); |
| 115 void OnShowContextMenu(int acc_obj_id); | 118 void OnShowContextMenu(int acc_obj_id); |
| 116 | 119 |
| 117 // Events from Blink are collected until they are ready to be | 120 // Events from Blink are collected until they are ready to be |
| 118 // sent to the browser. | 121 // sent to the browser. |
| 119 std::vector<AccessibilityHostMsg_EventParams> pending_events_; | 122 std::vector<AccessibilityHostMsg_EventParams> pending_events_; |
| 120 | 123 |
| 121 // The adapter that exposes Blink's accessibility tree to AXTreeSerializer. | 124 // The adapter that exposes Blink's accessibility tree to AXTreeSerializer. |
| 122 BlinkAXTreeSource tree_source_; | 125 BlinkAXTreeSource tree_source_; |
| 123 | 126 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 143 | 146 |
| 144 // So we can queue up tasks to be executed later. | 147 // So we can queue up tasks to be executed later. |
| 145 base::WeakPtrFactory<RendererAccessibility> weak_factory_; | 148 base::WeakPtrFactory<RendererAccessibility> weak_factory_; |
| 146 | 149 |
| 147 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); | 150 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); |
| 148 }; | 151 }; |
| 149 | 152 |
| 150 } // namespace content | 153 } // namespace content |
| 151 | 154 |
| 152 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ | 155 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ |
| OLD | NEW |