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

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

Issue 2154833002: Ignore show messages from RemoteFrames when the WebContents is hidden. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 5 months 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {} 170 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {}
171 171
172 // Returns true if |render_widget_host| holds the mouse lock. 172 // Returns true if |render_widget_host| holds the mouse lock.
173 virtual bool HasMouseLock(RenderWidgetHostImpl* render_widget_host); 173 virtual bool HasMouseLock(RenderWidgetHostImpl* render_widget_host);
174 174
175 // Called when the widget has sent a compositor proto. This is used in Btlimp 175 // Called when the widget has sent a compositor proto. This is used in Btlimp
176 // mode with the RemoteChannel compositor. 176 // mode with the RemoteChannel compositor.
177 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, 177 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host,
178 const std::vector<uint8_t>& proto) {} 178 const std::vector<uint8_t>& proto) {}
179 179
180 // Called when the visibility of the RenderFrameProxyHost in outter 180 // Called when the visibility of the RenderFrameProxyHost in outer
181 // WebContents changes. This method is only called on an inner WebContents and 181 // WebContents changes. This method is only called on an inner WebContents and
182 // will eventually notify all the RenderWidgetHostViews belonging to that 182 // will eventually notify all the RenderWidgetHostViews belonging to that
183 // WebContents. 183 // WebContents.
184 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} 184 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {}
185 185
186 // Update the renderer's cache of the screen rect of the view and window. 186 // Update the renderer's cache of the screen rect of the view and window.
187 virtual void SendScreenRects() {} 187 virtual void SendScreenRects() {}
188 188
189 // Notifies that the main frame in the renderer has performed the first paint 189 // Notifies that the main frame in the renderer has performed the first paint
190 // after a navigation. 190 // after a navigation.
191 virtual void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) { 191 virtual void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) {
192 } 192 }
193 193
194 // Returns the TextInputManager tracking text input state. 194 // Returns the TextInputManager tracking text input state.
195 virtual TextInputManager* GetTextInputManager(); 195 virtual TextInputManager* GetTextInputManager();
196 196
197 // Returns true if this RenderWidgetHost should remain hidden. This is used by
198 // the RenderWidgetHost to ask the delegate if it can be shown in the event of
199 // something other than the WebContents attempting to enable visibility of
200 // this RenderWidgetHost.
201 virtual bool IsHidden();
202
197 protected: 203 protected:
198 virtual ~RenderWidgetHostDelegate() {} 204 virtual ~RenderWidgetHostDelegate() {}
199 }; 205 };
200 206
201 } // namespace content 207 } // namespace content
202 208
203 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 209 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698