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

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

Issue 1365433002: Add setSelection function to automation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nobrailleautostartintests
Patch Set: Change setDocumentSelection to take named arguments. Created 5 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_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
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
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_
OLDNEW
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | content/renderer/accessibility/renderer_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698