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_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 virtual void HandlePointerActivate() {} | 185 virtual void HandlePointerActivate() {} |
186 virtual void HandleGestureBegin() {} | 186 virtual void HandleGestureBegin() {} |
187 virtual void HandleGestureEnd() {} | 187 virtual void HandleGestureEnd() {} |
188 | 188 |
189 // Called when a file selection is to be done. | 189 // Called when a file selection is to be done. |
190 virtual void RunFileChooser( | 190 virtual void RunFileChooser( |
191 RenderViewHost* render_view_host, | 191 RenderViewHost* render_view_host, |
192 const FileChooserParams& params) {} | 192 const FileChooserParams& params) {} |
193 | 193 |
194 // Notification that the page wants to go into or out of fullscreen mode. | 194 // Notification that the page wants to go into or out of fullscreen mode. |
195 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} | 195 virtual void EnterFullscreenMode(const GURL& origin) {} |
| 196 virtual void ExitFullscreenMode() {} |
196 virtual bool IsFullscreenForCurrentTab() const; | 197 virtual bool IsFullscreenForCurrentTab() const; |
197 | 198 |
198 // The contents' preferred size changed. | 199 // The contents' preferred size changed. |
199 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 200 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
200 | 201 |
201 // The contents auto-resized and the container should match it. | 202 // The contents auto-resized and the container should match it. |
202 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} | 203 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} |
203 | 204 |
204 // Requests to lock the mouse. Once the request is approved or rejected, | 205 // Requests to lock the mouse. Once the request is approved or rejected, |
205 // GotResponseToLockMouseRequest() will be called on the requesting render | 206 // GotResponseToLockMouseRequest() will be called on the requesting render |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 288 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
288 virtual bool IsVirtualKeyboardRequested(); | 289 virtual bool IsVirtualKeyboardRequested(); |
289 | 290 |
290 protected: | 291 protected: |
291 virtual ~RenderViewHostDelegate() {} | 292 virtual ~RenderViewHostDelegate() {} |
292 }; | 293 }; |
293 | 294 |
294 } // namespace content | 295 } // namespace content |
295 | 296 |
296 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 297 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |