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" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "ipc/ipc_listener.h" | 12 #include "ipc/ipc_listener.h" |
13 #include "ipc/ipc_sender.h" | 13 #include "ipc/ipc_sender.h" |
14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 15 #include "ui/gfx/rect.h" |
15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
16 | 17 |
17 namespace base { | 18 namespace base { |
18 class Value; | 19 class Value; |
19 } | 20 } |
20 | 21 |
21 namespace content { | 22 namespace content { |
22 class RenderProcessHost; | 23 class RenderProcessHost; |
23 class RenderViewHost; | 24 class RenderViewHost; |
24 class SiteInstance; | 25 class SiteInstance; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // Returns the associated widget's native view. | 65 // Returns the associated widget's native view. |
65 virtual gfx::NativeView GetNativeView() = 0; | 66 virtual gfx::NativeView GetNativeView() = 0; |
66 | 67 |
67 // Runs some JavaScript in this frame's context. If a callback is provided, it | 68 // Runs some JavaScript in this frame's context. If a callback is provided, it |
68 // will be used to return the result, when the result is available. | 69 // will be used to return the result, when the result is available. |
69 typedef base::Callback<void(const base::Value*)> JavaScriptResultCallback; | 70 typedef base::Callback<void(const base::Value*)> JavaScriptResultCallback; |
70 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; | 71 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; |
71 virtual void ExecuteJavaScript(const base::string16& javascript, | 72 virtual void ExecuteJavaScript(const base::string16& javascript, |
72 const JavaScriptResultCallback& callback) = 0; | 73 const JavaScriptResultCallback& callback) = 0; |
73 | 74 |
| 75 // Accessibility actions. |
| 76 virtual void AccessibilitySetFocus(int acc_obj_id) = 0; |
| 77 virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0; |
| 78 virtual void AccessibilityScrollToMakeVisible( |
| 79 int acc_obj_id, gfx::Rect subfocus) = 0; |
| 80 virtual void AccessibilitySetTextSelection( |
| 81 int acc_obj_id, int start_offset, int end_offset) = 0; |
| 82 |
74 // Temporary until we get rid of RenderViewHost. | 83 // Temporary until we get rid of RenderViewHost. |
75 virtual RenderViewHost* GetRenderViewHost() = 0; | 84 virtual RenderViewHost* GetRenderViewHost() = 0; |
76 | 85 |
77 private: | 86 private: |
78 // This interface should only be implemented inside content. | 87 // This interface should only be implemented inside content. |
79 friend class RenderFrameHostImpl; | 88 friend class RenderFrameHostImpl; |
80 RenderFrameHost() {} | 89 RenderFrameHost() {} |
81 }; | 90 }; |
82 | 91 |
83 } // namespace content | 92 } // namespace content |
84 | 93 |
85 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 94 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |