| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 336 |
| 337 // Called when a file selection is to be done. | 337 // Called when a file selection is to be done. |
| 338 virtual void RunFileChooser( | 338 virtual void RunFileChooser( |
| 339 RenderViewHost* render_view_host, | 339 RenderViewHost* render_view_host, |
| 340 const FileChooserParams& params) {} | 340 const FileChooserParams& params) {} |
| 341 | 341 |
| 342 // Notification that the page wants to go into or out of fullscreen mode. | 342 // Notification that the page wants to go into or out of fullscreen mode. |
| 343 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} | 343 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} |
| 344 virtual bool IsFullscreenForCurrentTab() const; | 344 virtual bool IsFullscreenForCurrentTab() const; |
| 345 | 345 |
| 346 // Notification that the page programatically scrolled. |
| 347 virtual void DidProgrammaticallyScroll(const gfx::Point& scroll_point) {} |
| 348 |
| 346 // The contents' preferred size changed. | 349 // The contents' preferred size changed. |
| 347 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 350 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
| 348 | 351 |
| 349 // The contents auto-resized and the container should match it. | 352 // The contents auto-resized and the container should match it. |
| 350 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} | 353 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} |
| 351 | 354 |
| 352 // Requests to lock the mouse. Once the request is approved or rejected, | 355 // Requests to lock the mouse. Once the request is approved or rejected, |
| 353 // GotResponseToLockMouseRequest() will be called on the requesting render | 356 // GotResponseToLockMouseRequest() will be called on the requesting render |
| 354 // view host. | 357 // view host. |
| 355 virtual void RequestToLockMouse(bool user_gesture, | 358 virtual void RequestToLockMouse(bool user_gesture, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 const MediaStreamRequest& request, | 419 const MediaStreamRequest& request, |
| 417 const MediaResponseCallback& callback) {} | 420 const MediaResponseCallback& callback) {} |
| 418 | 421 |
| 419 protected: | 422 protected: |
| 420 virtual ~RenderViewHostDelegate() {} | 423 virtual ~RenderViewHostDelegate() {} |
| 421 }; | 424 }; |
| 422 | 425 |
| 423 } // namespace content | 426 } // namespace content |
| 424 | 427 |
| 425 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 428 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |