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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // Returns the display mode for the view. | 161 // Returns the display mode for the view. |
162 virtual blink::WebDisplayMode GetDisplayMode( | 162 virtual blink::WebDisplayMode GetDisplayMode( |
163 RenderWidgetHostImpl* render_widget_host) const; | 163 RenderWidgetHostImpl* render_widget_host) const; |
164 | 164 |
165 // Notification that the widget has lost capture. | 165 // Notification that the widget has lost capture. |
166 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {} | 166 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {} |
167 | 167 |
168 // Notification that the widget has lost the mouse lock. | 168 // Notification that the widget has lost the mouse lock. |
169 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {} | 169 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {} |
170 | 170 |
171 #if defined(OS_WIN) | |
172 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | |
173 #endif | |
174 | |
175 // Called when the widget has sent a compositor proto. This is used in Btlimp | 171 // Called when the widget has sent a compositor proto. This is used in Btlimp |
176 // mode with the RemoteChannel compositor. | 172 // mode with the RemoteChannel compositor. |
177 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, | 173 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, |
178 const std::vector<uint8_t>& proto) {} | 174 const std::vector<uint8_t>& proto) {} |
179 | 175 |
180 // Called when the visibility of the RenderFrameProxyHost in outter | 176 // Called when the visibility of the RenderFrameProxyHost in outter |
181 // WebContents changes. This method is only called on an inner WebContents and | 177 // WebContents changes. This method is only called on an inner WebContents and |
182 // will eventually notify all the RenderWidgetHostViews belonging to that | 178 // will eventually notify all the RenderWidgetHostViews belonging to that |
183 // WebContents. | 179 // WebContents. |
184 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} | 180 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} |
185 | 181 |
186 // Update the renderer's cache of the screen rect of the view and window. | 182 // Update the renderer's cache of the screen rect of the view and window. |
187 virtual void SendScreenRects() {} | 183 virtual void SendScreenRects() {} |
188 | 184 |
189 protected: | 185 protected: |
190 virtual ~RenderWidgetHostDelegate() {} | 186 virtual ~RenderWidgetHostDelegate() {} |
191 }; | 187 }; |
192 | 188 |
193 } // namespace content | 189 } // namespace content |
194 | 190 |
195 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 191 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |