| 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 | 392 |
| 393 // The contents' preferred size changed. | 393 // The contents' preferred size changed. |
| 394 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 394 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
| 395 | 395 |
| 396 // The contents auto-resized and the container should match it. | 396 // The contents auto-resized and the container should match it. |
| 397 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} | 397 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} |
| 398 | 398 |
| 399 // Requests to lock the mouse. Once the request is approved or rejected, | 399 // Requests to lock the mouse. Once the request is approved or rejected, |
| 400 // GotResponseToLockMouseRequest() will be called on the requesting render | 400 // GotResponseToLockMouseRequest() will be called on the requesting render |
| 401 // view host. | 401 // view host. |
| 402 virtual void RequestToLockMouse() {} | 402 virtual void RequestToLockMouse(bool user_gesture) {} |
| 403 | 403 |
| 404 // Notification that the view has lost the mouse lock. | 404 // Notification that the view has lost the mouse lock. |
| 405 virtual void LostMouseLock() {} | 405 virtual void LostMouseLock() {} |
| 406 | 406 |
| 407 protected: | 407 protected: |
| 408 virtual ~RenderViewHostDelegate() {} | 408 virtual ~RenderViewHostDelegate() {} |
| 409 }; | 409 }; |
| 410 | 410 |
| 411 } // namespace content | 411 } // namespace content |
| 412 | 412 |
| 413 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 413 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |