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

Side by Side Diff: content/public/browser/render_frame_host.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 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual void ExecuteJavaScriptWithUserGestureForTests( 106 virtual void ExecuteJavaScriptWithUserGestureForTests(
107 const base::string16& javascript) = 0; 107 const base::string16& javascript) = 0;
108 108
109 // Accessibility actions - these send a message to the RenderFrame 109 // Accessibility actions - these send a message to the RenderFrame
110 // to trigger an action on an accessibility object. 110 // to trigger an action on an accessibility object.
111 virtual void AccessibilitySetFocus(int acc_obj_id) = 0; 111 virtual void AccessibilitySetFocus(int acc_obj_id) = 0;
112 virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0; 112 virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0;
113 virtual void AccessibilityScrollToMakeVisible( 113 virtual void AccessibilityScrollToMakeVisible(
114 int acc_obj_id, const gfx::Rect& subfocus) = 0; 114 int acc_obj_id, const gfx::Rect& subfocus) = 0;
115 virtual void AccessibilityShowContextMenu(int acc_obj_id) = 0; 115 virtual void AccessibilityShowContextMenu(int acc_obj_id) = 0;
116 virtual void AccessibilitySetTextSelection( 116 virtual void AccessibilitySetSelection(int anchor_object_id,
117 int acc_obj_id, int start_offset, int end_offset) = 0; 117 int anchor_offset,
118 int focus_object_id,
119 int focus_offset) = 0;
118 120
119 // This is called when the user has committed to the given find in page 121 // This is called when the user has committed to the given find in page
120 // request (e.g. by pressing enter or by clicking on the next / previous 122 // request (e.g. by pressing enter or by clicking on the next / previous
121 // result buttons). It triggers sending a native accessibility event on 123 // result buttons). It triggers sending a native accessibility event on
122 // the result object on the page, navigating assistive technology to that 124 // the result object on the page, navigating assistive technology to that
123 // result. 125 // result.
124 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; 126 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0;
125 127
126 // Roundtrips through the renderer and compositor pipeline to ensure that any 128 // Roundtrips through the renderer and compositor pipeline to ensure that any
127 // changes to the contents resulting from operations executed prior to this 129 // changes to the contents resulting from operations executed prior to this
(...skipping 20 matching lines...) Expand all
148 150
149 private: 151 private:
150 // This interface should only be implemented inside content. 152 // This interface should only be implemented inside content.
151 friend class RenderFrameHostImpl; 153 friend class RenderFrameHostImpl;
152 RenderFrameHost() {} 154 RenderFrameHost() {}
153 }; 155 };
154 156
155 } // namespace content 157 } // namespace content
156 158
157 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 159 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/common/accessibility_messages.h ('k') | content/renderer/accessibility/renderer_accessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698