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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 virtual void RequestToLockMouse(RenderWidgetHostImpl* render_widget_host, | 147 virtual void RequestToLockMouse(RenderWidgetHostImpl* render_widget_host, |
148 bool user_gesture, | 148 bool user_gesture, |
149 bool last_unlocked_by_target) {} | 149 bool last_unlocked_by_target) {} |
150 | 150 |
151 // Return the rect where to display the resize corner, if any, otherwise | 151 // Return the rect where to display the resize corner, if any, otherwise |
152 // an empty rect. | 152 // an empty rect. |
153 virtual gfx::Rect GetRootWindowResizerRect( | 153 virtual gfx::Rect GetRootWindowResizerRect( |
154 RenderWidgetHostImpl* render_widget_host) const; | 154 RenderWidgetHostImpl* render_widget_host) const; |
155 | 155 |
156 // Returns whether the associated tab is in fullscreen mode. | 156 // Returns whether the associated tab is in fullscreen mode. |
157 virtual bool IsFullscreenForCurrentTab( | 157 virtual bool IsFullscreenForCurrentTab() const; |
158 RenderWidgetHostImpl* render_widget_host) const; | |
159 | 158 |
160 // Returns the display mode for the view. | 159 // Returns the display mode for the view. |
161 virtual blink::WebDisplayMode GetDisplayMode( | 160 virtual blink::WebDisplayMode GetDisplayMode( |
162 RenderWidgetHostImpl* render_widget_host) const; | 161 RenderWidgetHostImpl* render_widget_host) const; |
163 | 162 |
164 // Notification that the widget has lost capture. | 163 // Notification that the widget has lost capture. |
165 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {} | 164 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {} |
166 | 165 |
167 // Notification that the widget has lost the mouse lock. | 166 // Notification that the widget has lost the mouse lock. |
168 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {} | 167 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {} |
(...skipping 17 matching lines...) Expand all Loading... |
186 virtual void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) { | 185 virtual void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) { |
187 } | 186 } |
188 | 187 |
189 protected: | 188 protected: |
190 virtual ~RenderWidgetHostDelegate() {} | 189 virtual ~RenderWidgetHostDelegate() {} |
191 }; | 190 }; |
192 | 191 |
193 } // namespace content | 192 } // namespace content |
194 | 193 |
195 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 194 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |