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

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

Issue 203753002: Implement actions for Automation API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable test on Mac. Created 6 years, 8 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 | Annotate | Revision Log
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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/native_web_keyboard_event.h" 10 #include "content/public/browser/native_web_keyboard_event.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 // Check whether this RenderWidget has full accessibility mode. 209 // Check whether this RenderWidget has full accessibility mode.
210 virtual bool IsFullAccessibilityModeForTesting() = 0; 210 virtual bool IsFullAccessibilityModeForTesting() = 0;
211 211
212 // Send a command to the renderer to turn on tree only accessibility. 212 // Send a command to the renderer to turn on tree only accessibility.
213 virtual void EnableTreeOnlyAccessibilityMode() = 0; 213 virtual void EnableTreeOnlyAccessibilityMode() = 0;
214 214
215 // Check whether this RenderWidget has tree-only accessibility mode. 215 // Check whether this RenderWidget has tree-only accessibility mode.
216 virtual bool IsTreeOnlyAccessibilityModeForTesting() = 0; 216 virtual bool IsTreeOnlyAccessibilityModeForTesting() = 0;
217 217
218 // Relay a request from assistive technology to perform the default action
219 // on a given node.
220 virtual void AccessibilityDoDefaultAction(int object_id) = 0;
221
222 // Relay a request from assistive technology to set focus to a given node.
223 virtual void AccessibilitySetFocus(int object_id) = 0;
224
225 // Relay a request from assistive technology to make a given object
226 // visible by scrolling as many scrollable containers as necessary.
227 // In addition, if it's not possible to make the entire object visible,
228 // scroll so that the |subfocus| rect is visible at least. The subfocus
229 // rect is in local coordinates of the object itself.
230 virtual void AccessibilityScrollToMakeVisible(
231 int acc_obj_id, gfx::Rect subfocus) = 0;
232
233 // Relay a request from assistive technology to move a given object
234 // to a specific location, in the WebContents area coordinate space, i.e.
235 // (0, 0) is the top-left corner of the WebContents.
236 virtual void AccessibilityScrollToPoint(int acc_obj_id, gfx::Point point) = 0;
237
238 // Relay a request from assistive technology to set text selection.
239 virtual void AccessibilitySetTextSelection(
240 int acc_obj_id, int start_offset, int end_offset) = 0;
241
218 // Forwards the given message to the renderer. These are called by 242 // Forwards the given message to the renderer. These are called by
219 // the view when it has received a message. 243 // the view when it has received a message.
220 virtual void ForwardMouseEvent( 244 virtual void ForwardMouseEvent(
221 const blink::WebMouseEvent& mouse_event) = 0; 245 const blink::WebMouseEvent& mouse_event) = 0;
222 virtual void ForwardWheelEvent( 246 virtual void ForwardWheelEvent(
223 const blink::WebMouseWheelEvent& wheel_event) = 0; 247 const blink::WebMouseWheelEvent& wheel_event) = 0;
224 virtual void ForwardKeyboardEvent( 248 virtual void ForwardKeyboardEvent(
225 const NativeWebKeyboardEvent& key_event) = 0; 249 const NativeWebKeyboardEvent& key_event) = 0;
226 250
227 virtual const gfx::Vector2d& GetLastScrollOffset() const = 0; 251 virtual const gfx::Vector2d& GetLastScrollOffset() const = 0;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // within content/. This method is necessary because 323 // within content/. This method is necessary because
300 // RenderWidgetHost is the root of a diamond inheritance pattern, so 324 // RenderWidgetHost is the root of a diamond inheritance pattern, so
301 // subclasses inherit it virtually, which removes our ability to 325 // subclasses inherit it virtually, which removes our ability to
302 // static_cast to the subclass. 326 // static_cast to the subclass.
303 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; 327 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0;
304 }; 328 };
305 329
306 } // namespace content 330 } // namespace content
307 331
308 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 332 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/ax_event_notification_details.cc ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698