| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |