| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame | 139 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame |
| 140 // entirely loaded). | 140 // entirely loaded). |
| 141 virtual void DidChangeLoadProgress(double progress) {} | 141 virtual void DidChangeLoadProgress(double progress) {} |
| 142 | 142 |
| 143 // The RenderView's main frame document element is ready. This happens when | 143 // The RenderView's main frame document element is ready. This happens when |
| 144 // the document has finished parsing. | 144 // the document has finished parsing. |
| 145 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} | 145 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} |
| 146 | 146 |
| 147 // The onload handler in the RenderView's main frame has completed. | 147 // The onload handler in the RenderView's main frame has completed. |
| 148 virtual void DocumentOnLoadCompletedInMainFrame( | 148 virtual void DocumentOnLoadCompletedInMainFrame( |
| 149 RenderViewHost* render_view_host, | 149 RenderViewHost* render_view_host) {} |
| 150 int32 page_id) {} | |
| 151 | 150 |
| 152 // The page wants to close the active view in this tab. | 151 // The page wants to close the active view in this tab. |
| 153 virtual void RouteCloseEvent(RenderViewHost* rvh) {} | 152 virtual void RouteCloseEvent(RenderViewHost* rvh) {} |
| 154 | 153 |
| 155 // The page wants to post a message to the active view in this tab. | 154 // The page wants to post a message to the active view in this tab. |
| 156 virtual void RouteMessageEvent( | 155 virtual void RouteMessageEvent( |
| 157 RenderViewHost* rvh, | 156 RenderViewHost* rvh, |
| 158 const ViewMsg_PostMessage_Params& params) {} | 157 const ViewMsg_PostMessage_Params& params) {} |
| 159 | 158 |
| 160 // Return a dummy RendererPreferences object that will be used by the renderer | 159 // Return a dummy RendererPreferences object that will be used by the renderer |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 virtual void AccessibilityEventReceived( | 312 virtual void AccessibilityEventReceived( |
| 314 const std::vector<AXEventNotificationDetails>& details) {} | 313 const std::vector<AXEventNotificationDetails>& details) {} |
| 315 | 314 |
| 316 protected: | 315 protected: |
| 317 virtual ~RenderViewHostDelegate() {} | 316 virtual ~RenderViewHostDelegate() {} |
| 318 }; | 317 }; |
| 319 | 318 |
| 320 } // namespace content | 319 } // namespace content |
| 321 | 320 |
| 322 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 321 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |