| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class Value; | 24 class Value; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace service_manager { | 27 namespace service_manager { |
| 28 class InterfaceRegistry; | 28 class InterfaceRegistry; |
| 29 class InterfaceProvider; | 29 class InterfaceProvider; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace ui { |
| 33 struct AXActionData; |
| 34 } |
| 35 |
| 32 namespace content { | 36 namespace content { |
| 33 class AssociatedInterfaceProvider; | 37 class AssociatedInterfaceProvider; |
| 34 class AssociatedInterfaceRegistry; | 38 class AssociatedInterfaceRegistry; |
| 35 class RenderProcessHost; | 39 class RenderProcessHost; |
| 36 class RenderViewHost; | 40 class RenderViewHost; |
| 37 class RenderWidgetHostView; | 41 class RenderWidgetHostView; |
| 38 class SiteInstance; | 42 class SiteInstance; |
| 39 struct FileChooserFileInfo; | 43 struct FileChooserFileInfo; |
| 40 | 44 |
| 41 // The interface provides a communication conduit with a frame in the renderer. | 45 // The interface provides a communication conduit with a frame in the renderer. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 140 |
| 137 // ONLY FOR TESTS: Same as above but without restrictions. Optionally, adds a | 141 // ONLY FOR TESTS: Same as above but without restrictions. Optionally, adds a |
| 138 // fake UserGestureIndicator around execution. (crbug.com/408426) | 142 // fake UserGestureIndicator around execution. (crbug.com/408426) |
| 139 virtual void ExecuteJavaScriptForTests(const base::string16& javascript) = 0; | 143 virtual void ExecuteJavaScriptForTests(const base::string16& javascript) = 0; |
| 140 virtual void ExecuteJavaScriptForTests( | 144 virtual void ExecuteJavaScriptForTests( |
| 141 const base::string16& javascript, | 145 const base::string16& javascript, |
| 142 const JavaScriptResultCallback& callback) = 0; | 146 const JavaScriptResultCallback& callback) = 0; |
| 143 virtual void ExecuteJavaScriptWithUserGestureForTests( | 147 virtual void ExecuteJavaScriptWithUserGestureForTests( |
| 144 const base::string16& javascript) = 0; | 148 const base::string16& javascript) = 0; |
| 145 | 149 |
| 146 // Accessibility actions - these send a message to the RenderFrame | 150 // Send a message to the RenderFrame to trigger an action on an |
| 147 // to trigger an action on an accessibility object. | 151 // accessibility object. |
| 148 virtual void AccessibilitySetFocus(int acc_obj_id) = 0; | 152 virtual void AccessibilityPerformAction(const ui::AXActionData& data) = 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; | |
| 157 | 153 |
| 158 // This is called when the user has committed to the given find in page | 154 // This is called when the user has committed to the given find in page |
| 159 // request (e.g. by pressing enter or by clicking on the next / previous | 155 // request (e.g. by pressing enter or by clicking on the next / previous |
| 160 // result buttons). It triggers sending a native accessibility event on | 156 // result buttons). It triggers sending a native accessibility event on |
| 161 // the result object on the page, navigating assistive technology to that | 157 // the result object on the page, navigating assistive technology to that |
| 162 // result. | 158 // result. |
| 163 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; | 159 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; |
| 164 | 160 |
| 165 // Roundtrips through the renderer and compositor pipeline to ensure that any | 161 // Roundtrips through the renderer and compositor pipeline to ensure that any |
| 166 // changes to the contents resulting from operations executed prior to this | 162 // changes to the contents resulting from operations executed prior to this |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 222 |
| 227 private: | 223 private: |
| 228 // This interface should only be implemented inside content. | 224 // This interface should only be implemented inside content. |
| 229 friend class RenderFrameHostImpl; | 225 friend class RenderFrameHostImpl; |
| 230 RenderFrameHost() {} | 226 RenderFrameHost() {} |
| 231 }; | 227 }; |
| 232 | 228 |
| 233 } // namespace content | 229 } // namespace content |
| 234 | 230 |
| 235 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 231 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |