Chromium Code Reviews| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 116 // Requests the renderer to select the region between two points in the | 116 // Requests the renderer to select the region between two points in the |
| 117 // currently focused frame. | 117 // currently focused frame. |
| 118 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} | 118 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {} |
| 119 | 119 |
| 120 virtual RenderWidgetHostInputEventRouter* GetInputEventRouter(); | 120 virtual RenderWidgetHostInputEventRouter* GetInputEventRouter(); |
| 121 | 121 |
| 122 // Send page-level focus state to all SiteInstances involved in rendering the | 122 // Send page-level focus state to all SiteInstances involved in rendering the |
| 123 // current FrameTree, not including the main frame's SiteInstance. | 123 // current FrameTree, not including the main frame's SiteInstance. |
| 124 virtual void ReplicatePageFocus(bool is_focused) {} | 124 virtual void ReplicatePageFocus(bool is_focused) {} |
| 125 | 125 |
| 126 // If there is a guest WebContents, it should be notified of the visibility | |
| 127 // change. | |
| 128 virtual void ForwardVisibilityChangeToInnerContents(bool visible) {} | |
|
Charlie Reis
2015/12/08 19:18:33
This isn't implemented anywhere. Is it stale, or
EhsanK
2015/12/09 00:14:16
I did override it in WebContentsImpl. Purely, this
Charlie Reis
2015/12/10 07:45:19
Leaving it out for now would be fine, but if so we
| |
| 129 | |
| 126 // Get the focused RenderWidgetHost associated with |receiving_widget|. A | 130 // Get the focused RenderWidgetHost associated with |receiving_widget|. A |
| 127 // RenderWidgetHostView, upon receiving a keyboard event, will pass its | 131 // RenderWidgetHostView, upon receiving a keyboard event, will pass its |
| 128 // RenderWidgetHost to this function to determine who should ultimately | 132 // RenderWidgetHost to this function to determine who should ultimately |
| 129 // consume the event. This facilitates keyboard event routing with | 133 // consume the event. This facilitates keyboard event routing with |
| 130 // out-of-process iframes, where multiple RenderWidgetHosts may be involved | 134 // out-of-process iframes, where multiple RenderWidgetHosts may be involved |
| 131 // in rendering a page, yet keyboard events all arrive at the main frame's | 135 // in rendering a page, yet keyboard events all arrive at the main frame's |
| 132 // RenderWidgetHostView. When a main frame's RenderWidgetHost is passed in, | 136 // RenderWidgetHostView. When a main frame's RenderWidgetHost is passed in, |
| 133 // the function returns the focused frame that should consume keyboard | 137 // the function returns the focused frame that should consume keyboard |
| 134 // events. In all other cases, the function returns back |receiving_widget|. | 138 // events. In all other cases, the function returns back |receiving_widget|. |
| 135 virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost( | 139 virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost( |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, | 183 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, |
| 180 const std::vector<uint8_t>& proto) {} | 184 const std::vector<uint8_t>& proto) {} |
| 181 | 185 |
| 182 protected: | 186 protected: |
| 183 virtual ~RenderWidgetHostDelegate() {} | 187 virtual ~RenderWidgetHostDelegate() {} |
| 184 }; | 188 }; |
| 185 | 189 |
| 186 } // namespace content | 190 } // namespace content |
| 187 | 191 |
| 188 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 192 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |