| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 // The page is trying to close the RenderView's representation in the client. | 129 // The page is trying to close the RenderView's representation in the client. |
| 130 virtual void Close(RenderViewHost* render_view_host) {} | 130 virtual void Close(RenderViewHost* render_view_host) {} |
| 131 | 131 |
| 132 // The page is trying to move the RenderView's representation in the client. | 132 // The page is trying to move the RenderView's representation in the client. |
| 133 virtual void RequestMove(const gfx::Rect& new_bounds) {} | 133 virtual void RequestMove(const gfx::Rect& new_bounds) {} |
| 134 | 134 |
| 135 // The pending page load was canceled. | 135 // The pending page load was canceled. |
| 136 virtual void DidCancelLoading() {} | 136 virtual void DidCancelLoading() {} |
| 137 | 137 |
| 138 // The RenderView made progress loading a page's top frame. | |
| 139 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame | |
| 140 // entirely loaded). | |
| 141 virtual void DidChangeLoadProgress(double progress) {} | |
| 142 | |
| 143 // The RenderView's main frame document element is ready. This happens when | 138 // The RenderView's main frame document element is ready. This happens when |
| 144 // the document has finished parsing. | 139 // the document has finished parsing. |
| 145 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} | 140 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} |
| 146 | 141 |
| 147 // The onload handler in the RenderView's main frame has completed. | 142 // The onload handler in the RenderView's main frame has completed. |
| 148 virtual void DocumentOnLoadCompletedInMainFrame( | 143 virtual void DocumentOnLoadCompletedInMainFrame( |
| 149 RenderViewHost* render_view_host, | 144 RenderViewHost* render_view_host, |
| 150 int32 page_id) {} | 145 int32 page_id) {} |
| 151 | 146 |
| 152 // The page wants to close the active view in this tab. | 147 // The page wants to close the active view in this tab. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 virtual void AccessibilityEventReceived( | 308 virtual void AccessibilityEventReceived( |
| 314 const std::vector<AXEventNotificationDetails>& details) {} | 309 const std::vector<AXEventNotificationDetails>& details) {} |
| 315 | 310 |
| 316 protected: | 311 protected: |
| 317 virtual ~RenderViewHostDelegate() {} | 312 virtual ~RenderViewHostDelegate() {} |
| 318 }; | 313 }; |
| 319 | 314 |
| 320 } // namespace content | 315 } // namespace content |
| 321 | 316 |
| 322 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 317 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |