| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Handlers for messages from the browser to the renderer. | 85 // Handlers for messages from the browser to the renderer. |
| 86 void OnDoDefaultAction(int acc_obj_id); | 86 void OnDoDefaultAction(int acc_obj_id); |
| 87 void OnEventsAck(); | 87 void OnEventsAck(); |
| 88 void OnFatalError(); | 88 void OnFatalError(); |
| 89 void OnHitTest(gfx::Point point); | 89 void OnHitTest(gfx::Point point); |
| 90 void OnReset(int reset_token); | 90 void OnReset(int reset_token); |
| 91 void OnScrollToMakeVisible(int acc_obj_id, gfx::Rect subfocus); | 91 void OnScrollToMakeVisible(int acc_obj_id, gfx::Rect subfocus); |
| 92 void OnScrollToPoint(int acc_obj_id, gfx::Point point); | 92 void OnScrollToPoint(int acc_obj_id, gfx::Point point); |
| 93 void OnSetFocus(int acc_obj_id); | 93 void OnSetFocus(int acc_obj_id); |
| 94 void OnSetTextSelection(int acc_obj_id, int start_offset, int end_offset); | 94 void OnSetTextSelection(int acc_obj_id, int start_offset, int end_offset); |
| 95 void OnSetValue(int acc_obj_id, base::string16 value); |
| 95 | 96 |
| 96 // Events from Blink are collected until they are ready to be | 97 // Events from Blink are collected until they are ready to be |
| 97 // sent to the browser. | 98 // sent to the browser. |
| 98 std::vector<AccessibilityHostMsg_EventParams> pending_events_; | 99 std::vector<AccessibilityHostMsg_EventParams> pending_events_; |
| 99 | 100 |
| 100 // The adapter that exposes Blink's accessibility tree to AXTreeSerializer. | 101 // The adapter that exposes Blink's accessibility tree to AXTreeSerializer. |
| 101 BlinkAXTreeSource tree_source_; | 102 BlinkAXTreeSource tree_source_; |
| 102 | 103 |
| 103 // The serializer that sends accessibility messages to the browser process. | 104 // The serializer that sends accessibility messages to the browser process. |
| 104 ui::AXTreeSerializer<blink::WebAXObject> serializer_; | 105 ui::AXTreeSerializer<blink::WebAXObject> serializer_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 120 | 121 |
| 121 // So we can queue up tasks to be executed later. | 122 // So we can queue up tasks to be executed later. |
| 122 base::WeakPtrFactory<RendererAccessibility> weak_factory_; | 123 base::WeakPtrFactory<RendererAccessibility> weak_factory_; |
| 123 | 124 |
| 124 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); | 125 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace content | 128 } // namespace content |
| 128 | 129 |
| 129 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ | 130 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ |
| OLD | NEW |