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