| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // The page's encoding was changed and should be updated. | 126 // The page's encoding was changed and should be updated. |
| 127 virtual void UpdateEncoding(RenderViewHost* render_view_host, | 127 virtual void UpdateEncoding(RenderViewHost* render_view_host, |
| 128 const std::string& encoding) {} | 128 const std::string& encoding) {} |
| 129 | 129 |
| 130 // The destination URL has changed should be updated | 130 // The destination URL has changed should be updated |
| 131 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} | 131 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} |
| 132 | 132 |
| 133 // The page is trying to close the RenderView's representation in the client. | 133 // The page is trying to close the RenderView's representation in the client. |
| 134 virtual void Close(RenderViewHost* render_view_host) {} | 134 virtual void Close(RenderViewHost* render_view_host) {} |
| 135 | 135 |
| 136 // The RenderViewHost has been swapped out. | |
| 137 virtual void SwappedOut(RenderViewHost* render_view_host) {} | |
| 138 | |
| 139 // The page is trying to move the RenderView's representation in the client. | 136 // The page is trying to move the RenderView's representation in the client. |
| 140 virtual void RequestMove(const gfx::Rect& new_bounds) {} | 137 virtual void RequestMove(const gfx::Rect& new_bounds) {} |
| 141 | 138 |
| 142 // The pending page load was canceled. | 139 // The pending page load was canceled. |
| 143 virtual void DidCancelLoading() {} | 140 virtual void DidCancelLoading() {} |
| 144 | 141 |
| 145 // The RenderView made progress loading a page's top frame. | 142 // The RenderView made progress loading a page's top frame. |
| 146 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame | 143 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame |
| 147 // entirely loaded). | 144 // entirely loaded). |
| 148 virtual void DidChangeLoadProgress(double progress) {} | 145 virtual void DidChangeLoadProgress(double progress) {} |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 virtual void AccessibilityEventReceived( | 343 virtual void AccessibilityEventReceived( |
| 347 const std::vector<AXEventNotificationDetails>& details) {} | 344 const std::vector<AXEventNotificationDetails>& details) {} |
| 348 | 345 |
| 349 protected: | 346 protected: |
| 350 virtual ~RenderViewHostDelegate() {} | 347 virtual ~RenderViewHostDelegate() {} |
| 351 }; | 348 }; |
| 352 | 349 |
| 353 } // namespace content | 350 } // namespace content |
| 354 | 351 |
| 355 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 352 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |