Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: content/renderer/accessibility/render_accessibility_impl.h

Issue 2365263003: Implement NSAccessibilityScrollToVisibleAction on Mac (Closed)
Patch Set: Fix endless loop in AXObject::scrollToMakeVisibleWithSubFocus Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void OnSetScrollOffset(int acc_obj_id, gfx::Point offset); 125 void OnSetScrollOffset(int acc_obj_id, gfx::Point offset);
126 void OnSetFocus(int acc_obj_id); 126 void OnSetFocus(int acc_obj_id);
127 void OnSetSelection(int anchor_acc_obj_id, 127 void OnSetSelection(int anchor_acc_obj_id,
128 int anchor_offset, 128 int anchor_offset,
129 int focus_acc_obj_id, 129 int focus_acc_obj_id,
130 int focus_offset); 130 int focus_offset);
131 void OnSetValue(int acc_obj_id, base::string16 value); 131 void OnSetValue(int acc_obj_id, base::string16 value);
132 void OnShowContextMenu(int acc_obj_id); 132 void OnShowContextMenu(int acc_obj_id);
133 133
134 void AddPdfTreeToUpdate(AXContentTreeUpdate* update); 134 void AddPdfTreeToUpdate(AXContentTreeUpdate* update);
135 void ScrollPdf(int id_to_make_visible);
135 136
136 // Events from Blink are collected until they are ready to be 137 // Events from Blink are collected until they are ready to be
137 // sent to the browser. 138 // sent to the browser.
138 std::vector<AccessibilityHostMsg_EventParams> pending_events_; 139 std::vector<AccessibilityHostMsg_EventParams> pending_events_;
139 140
140 // The adapter that exposes Blink's accessibility tree to AXTreeSerializer. 141 // The adapter that exposes Blink's accessibility tree to AXTreeSerializer.
141 BlinkAXTreeSource tree_source_; 142 BlinkAXTreeSource tree_source_;
142 143
143 // The serializer that sends accessibility messages to the browser process. 144 // The serializer that sends accessibility messages to the browser process.
144 using BlinkAXTreeSerializer = 145 using BlinkAXTreeSerializer =
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 177
177 // So we can queue up tasks to be executed later. 178 // So we can queue up tasks to be executed later.
178 base::WeakPtrFactory<RenderAccessibilityImpl> weak_factory_; 179 base::WeakPtrFactory<RenderAccessibilityImpl> weak_factory_;
179 180
180 DISALLOW_COPY_AND_ASSIGN(RenderAccessibilityImpl); 181 DISALLOW_COPY_AND_ASSIGN(RenderAccessibilityImpl);
181 }; 182 };
182 183
183 } // namespace content 184 } // namespace content
184 185
185 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ 186 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698