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

Side by Side Diff: content/public/browser/render_frame_host.h

Issue 2430473003: Revert of Create AXAction and AXActionData as a way to simplify accessibility actions (Closed)
Patch Set: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 11 matching lines...) Expand all
22 22
23 namespace base { 23 namespace base {
24 class Value; 24 class Value;
25 } 25 }
26 26
27 namespace shell { 27 namespace shell {
28 class InterfaceRegistry; 28 class InterfaceRegistry;
29 class InterfaceProvider; 29 class InterfaceProvider;
30 } 30 }
31 31
32 namespace ui {
33 struct AXActionData;
34 }
35
36 namespace content { 32 namespace content {
37 class AssociatedInterfaceProvider; 33 class AssociatedInterfaceProvider;
38 class AssociatedInterfaceRegistry; 34 class AssociatedInterfaceRegistry;
39 class RenderProcessHost; 35 class RenderProcessHost;
40 class RenderViewHost; 36 class RenderViewHost;
41 class RenderWidgetHostView; 37 class RenderWidgetHostView;
42 class SiteInstance; 38 class SiteInstance;
43 struct FileChooserFileInfo; 39 struct FileChooserFileInfo;
44 40
45 // The interface provides a communication conduit with a frame in the renderer. 41 // The interface provides a communication conduit with a frame in the renderer.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 136
141 // ONLY FOR TESTS: Same as above but without restrictions. Optionally, adds a 137 // ONLY FOR TESTS: Same as above but without restrictions. Optionally, adds a
142 // fake UserGestureIndicator around execution. (crbug.com/408426) 138 // fake UserGestureIndicator around execution. (crbug.com/408426)
143 virtual void ExecuteJavaScriptForTests(const base::string16& javascript) = 0; 139 virtual void ExecuteJavaScriptForTests(const base::string16& javascript) = 0;
144 virtual void ExecuteJavaScriptForTests( 140 virtual void ExecuteJavaScriptForTests(
145 const base::string16& javascript, 141 const base::string16& javascript,
146 const JavaScriptResultCallback& callback) = 0; 142 const JavaScriptResultCallback& callback) = 0;
147 virtual void ExecuteJavaScriptWithUserGestureForTests( 143 virtual void ExecuteJavaScriptWithUserGestureForTests(
148 const base::string16& javascript) = 0; 144 const base::string16& javascript) = 0;
149 145
150 // Send a message to the RenderFrame to trigger an action on an 146 // Accessibility actions - these send a message to the RenderFrame
151 // accessibility object. 147 // to trigger an action on an accessibility object.
152 virtual void AccessibilityPerformAction(const ui::AXActionData& data) = 0; 148 virtual void AccessibilitySetFocus(int acc_obj_id) = 0;
149 virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0;
150 virtual void AccessibilityScrollToMakeVisible(
151 int acc_obj_id, const gfx::Rect& subfocus) = 0;
152 virtual void AccessibilityShowContextMenu(int acc_obj_id) = 0;
153 virtual void AccessibilitySetSelection(int anchor_object_id,
154 int anchor_offset,
155 int focus_object_id,
156 int focus_offset) = 0;
153 157
154 // This is called when the user has committed to the given find in page 158 // This is called when the user has committed to the given find in page
155 // request (e.g. by pressing enter or by clicking on the next / previous 159 // request (e.g. by pressing enter or by clicking on the next / previous
156 // result buttons). It triggers sending a native accessibility event on 160 // result buttons). It triggers sending a native accessibility event on
157 // the result object on the page, navigating assistive technology to that 161 // the result object on the page, navigating assistive technology to that
158 // result. 162 // result.
159 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; 163 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0;
160 164
161 // Roundtrips through the renderer and compositor pipeline to ensure that any 165 // Roundtrips through the renderer and compositor pipeline to ensure that any
162 // changes to the contents resulting from operations executed prior to this 166 // changes to the contents resulting from operations executed prior to this
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 226
223 private: 227 private:
224 // This interface should only be implemented inside content. 228 // This interface should only be implemented inside content.
225 friend class RenderFrameHostImpl; 229 friend class RenderFrameHostImpl;
226 RenderFrameHost() {} 230 RenderFrameHost() {}
227 }; 231 };
228 232
229 } // namespace content 233 } // namespace content
230 234
231 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 235 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/common/accessibility_messages.h ('k') | content/renderer/accessibility/render_accessibility_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698