Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 1414663011: Notifying the Out of Process Renderer about Visibility Change of a Remote Frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added WebContentsImpl::ForwardVisibilityChangeToInnerContents(bool) Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
Charlie Reis 2015/12/10 07:45:19 nit: s/guest/inner/
EhsanK 2015/12/10 17:08:31 Acknowledged. This function is removed now.
127 // change.
128 virtual void ForwardVisibilityChangeToInnerContents(bool visible) {}
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698