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 <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 Loading... | |
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 be hidden. This is used by the | |
kenrb
2016/07/18 18:05:28
This is better. Maybe in the first sentence replac
lfg
2016/07/18 18:07:27
Done.
| |
198 // 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_ |
OLD | NEW |