| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 // The contents' preferred size changed. | 321 // The contents' preferred size changed. |
| 322 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 322 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
| 323 | 323 |
| 324 // The contents auto-resized and the container should match it. | 324 // The contents auto-resized and the container should match it. |
| 325 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} | 325 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} |
| 326 | 326 |
| 327 // Requests to lock the mouse. Once the request is approved or rejected, | 327 // Requests to lock the mouse. Once the request is approved or rejected, |
| 328 // GotResponseToLockMouseRequest() will be called on the requesting render | 328 // GotResponseToLockMouseRequest() will be called on the requesting render |
| 329 // view host. | 329 // view host. |
| 330 virtual void RequestToLockMouse(bool user_gesture) {} | 330 virtual void RequestToLockMouse(bool user_gesture, |
| 331 bool last_unlocked_by_target) {} |
| 331 | 332 |
| 332 // Notification that the view has lost the mouse lock. | 333 // Notification that the view has lost the mouse lock. |
| 333 virtual void LostMouseLock() {} | 334 virtual void LostMouseLock() {} |
| 334 | 335 |
| 335 // The page is trying to open a new page (e.g. a popup window). The window | 336 // The page is trying to open a new page (e.g. a popup window). The window |
| 336 // should be created associated with the given route, but it should not be | 337 // should be created associated with the given route, but it should not be |
| 337 // shown yet. That should happen in response to ShowCreatedWindow. | 338 // shown yet. That should happen in response to ShowCreatedWindow. |
| 338 // |params.window_container_type| describes the type of RenderViewHost | 339 // |params.window_container_type| describes the type of RenderViewHost |
| 339 // container that is requested -- in particular, the window.open call may | 340 // container that is requested -- in particular, the window.open call may |
| 340 // have specified 'background' and 'persistent' in the feature string. | 341 // have specified 'background' and 'persistent' in the feature string. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 // provided in the supplied params. | 382 // provided in the supplied params. |
| 382 virtual void ShowContextMenu(const content::ContextMenuParams& params) {} | 383 virtual void ShowContextMenu(const content::ContextMenuParams& params) {} |
| 383 | 384 |
| 384 protected: | 385 protected: |
| 385 virtual ~RenderViewHostDelegate() {} | 386 virtual ~RenderViewHostDelegate() {} |
| 386 }; | 387 }; |
| 387 | 388 |
| 388 } // namespace content | 389 } // namespace content |
| 389 | 390 |
| 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 391 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |