Chromium Code Reviews| 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, int anchor_offset, |
|
nasko
2015/09/23 16:08:34
Each parameter should be on a new line. Running "g
| |
| 114 int focus_acc_obj_id, int focus_offset); | |
| 114 void OnSetValue(int acc_obj_id, base::string16 value); | 115 void OnSetValue(int acc_obj_id, base::string16 value); |
| 115 void OnShowContextMenu(int acc_obj_id); | 116 void OnShowContextMenu(int acc_obj_id); |
| 116 | 117 |
| 117 // Events from Blink are collected until they are ready to be | 118 // Events from Blink are collected until they are ready to be |
| 118 // sent to the browser. | 119 // sent to the browser. |
| 119 std::vector<AccessibilityHostMsg_EventParams> pending_events_; | 120 std::vector<AccessibilityHostMsg_EventParams> pending_events_; |
| 120 | 121 |
| 121 // The adapter that exposes Blink's accessibility tree to AXTreeSerializer. | 122 // The adapter that exposes Blink's accessibility tree to AXTreeSerializer. |
| 122 BlinkAXTreeSource tree_source_; | 123 BlinkAXTreeSource tree_source_; |
| 123 | 124 |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 143 | 144 |
| 144 // So we can queue up tasks to be executed later. | 145 // So we can queue up tasks to be executed later. |
| 145 base::WeakPtrFactory<RendererAccessibility> weak_factory_; | 146 base::WeakPtrFactory<RendererAccessibility> weak_factory_; |
| 146 | 147 |
| 147 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); | 148 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 } // namespace content | 151 } // namespace content |
| 151 | 152 |
| 152 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ | 153 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ |
| OLD | NEW |