| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 // Requests to lock the mouse. Once the request is approved or rejected, | 167 // Requests to lock the mouse. Once the request is approved or rejected, |
| 168 // GotResponseToLockMouseRequest() will be called on the requesting render | 168 // GotResponseToLockMouseRequest() will be called on the requesting render |
| 169 // widget host. |privileged| means that the request is always granted, used | 169 // widget host. |privileged| means that the request is always granted, used |
| 170 // for Pepper Flash. | 170 // for Pepper Flash. |
| 171 virtual void RequestToLockMouse(RenderWidgetHostImpl* render_widget_host, | 171 virtual void RequestToLockMouse(RenderWidgetHostImpl* render_widget_host, |
| 172 bool user_gesture, | 172 bool user_gesture, |
| 173 bool last_unlocked_by_target, | 173 bool last_unlocked_by_target, |
| 174 bool privileged) {} | 174 bool privileged) {} |
| 175 | 175 |
| 176 // Return the rect where to display the resize corner, if any, otherwise | |
| 177 // an empty rect. | |
| 178 virtual gfx::Rect GetRootWindowResizerRect( | |
| 179 RenderWidgetHostImpl* render_widget_host) const; | |
| 180 | |
| 181 // Returns whether the associated tab is in fullscreen mode. | 176 // Returns whether the associated tab is in fullscreen mode. |
| 182 virtual bool IsFullscreenForCurrentTab() const; | 177 virtual bool IsFullscreenForCurrentTab() const; |
| 183 | 178 |
| 184 // Returns the display mode for the view. | 179 // Returns the display mode for the view. |
| 185 virtual blink::WebDisplayMode GetDisplayMode( | 180 virtual blink::WebDisplayMode GetDisplayMode( |
| 186 RenderWidgetHostImpl* render_widget_host) const; | 181 RenderWidgetHostImpl* render_widget_host) const; |
| 187 | 182 |
| 188 // Notification that the widget has lost capture. | 183 // Notification that the widget has lost capture. |
| 189 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {} | 184 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {} |
| 190 | 185 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // this RenderWidgetHost. | 217 // this RenderWidgetHost. |
| 223 virtual bool IsHidden(); | 218 virtual bool IsHidden(); |
| 224 | 219 |
| 225 protected: | 220 protected: |
| 226 virtual ~RenderWidgetHostDelegate() {} | 221 virtual ~RenderWidgetHostDelegate() {} |
| 227 }; | 222 }; |
| 228 | 223 |
| 229 } // namespace content | 224 } // namespace content |
| 230 | 225 |
| 231 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 226 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |