OLD | NEW |
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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // Requests the renderer to select the region between two points in the | 92 // Requests the renderer to select the region between two points in the |
93 // currently focused frame. | 93 // currently focused frame. |
94 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} | 94 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} |
95 | 95 |
96 virtual RenderWidgetHostInputEventRouter* GetInputEventRouter(); | 96 virtual RenderWidgetHostInputEventRouter* GetInputEventRouter(); |
97 | 97 |
98 // Send page-level focus state to all SiteInstances involved in rendering the | 98 // Send page-level focus state to all SiteInstances involved in rendering the |
99 // current FrameTree, not including the main frame's SiteInstance. | 99 // current FrameTree, not including the main frame's SiteInstance. |
100 virtual void ReplicatePageFocus(bool is_focused) {} | 100 virtual void ReplicatePageFocus(bool is_focused) {} |
101 | 101 |
| 102 // Get the RenderWidgetHost of the currently focused frame. With |
| 103 // out-of-process iframes, multiple RenderWidgetHosts may be involved in |
| 104 // rendering a page, and this function determines which RenderWidgetHost |
| 105 // should consume a keyboard input event. |
| 106 virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost(); |
| 107 |
102 #if defined(OS_WIN) | 108 #if defined(OS_WIN) |
103 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 109 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
104 #endif | 110 #endif |
105 | 111 |
106 protected: | 112 protected: |
107 virtual ~RenderWidgetHostDelegate() {} | 113 virtual ~RenderWidgetHostDelegate() {} |
108 }; | 114 }; |
109 | 115 |
110 } // namespace content | 116 } // namespace content |
111 | 117 |
112 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 118 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |