| 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_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 RenderViewHost* render_view_host, | 380 RenderViewHost* render_view_host, |
| 381 const content::FileChooserParams& params) {} | 381 const content::FileChooserParams& params) {} |
| 382 | 382 |
| 383 // Notification that the page wants to go into or out of fullscreen mode. | 383 // Notification that the page wants to go into or out of fullscreen mode. |
| 384 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} | 384 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} |
| 385 virtual bool IsFullscreenForCurrentTab() const; | 385 virtual bool IsFullscreenForCurrentTab() const; |
| 386 | 386 |
| 387 // The contents' preferred size changed. | 387 // The contents' preferred size changed. |
| 388 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 388 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
| 389 | 389 |
| 390 // The contents auto-resized and the container should match it. |
| 391 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} |
| 392 |
| 390 // Notification message from HTML UI. | 393 // Notification message from HTML UI. |
| 391 virtual void WebUISend(RenderViewHost* render_view_host, | 394 virtual void WebUISend(RenderViewHost* render_view_host, |
| 392 const GURL& source_url, | 395 const GURL& source_url, |
| 393 const std::string& name, | 396 const std::string& name, |
| 394 const base::ListValue& args) {} | 397 const base::ListValue& args) {} |
| 395 // Requests to lock the mouse. Once the request is approved or rejected, | 398 // Requests to lock the mouse. Once the request is approved or rejected, |
| 396 // GotResponseToLockMouseRequest() will be called on the requesting render | 399 // GotResponseToLockMouseRequest() will be called on the requesting render |
| 397 // view host. | 400 // view host. |
| 398 virtual void RequestToLockMouse() {} | 401 virtual void RequestToLockMouse() {} |
| 399 | 402 |
| 400 // Notification that the view has lost the mouse lock. | 403 // Notification that the view has lost the mouse lock. |
| 401 virtual void LostMouseLock() {} | 404 virtual void LostMouseLock() {} |
| 402 | 405 |
| 403 protected: | 406 protected: |
| 404 virtual ~RenderViewHostDelegate() {} | 407 virtual ~RenderViewHostDelegate() {} |
| 405 }; | 408 }; |
| 406 | 409 |
| 407 } // namespace content | 410 } // namespace content |
| 408 | 411 |
| 409 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 412 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |