| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // The page is trying to close the RenderView's representation in the client. | 118 // The page is trying to close the RenderView's representation in the client. |
| 119 virtual void Close(RenderViewHost* render_view_host) {} | 119 virtual void Close(RenderViewHost* render_view_host) {} |
| 120 | 120 |
| 121 // The page is trying to move the RenderView's representation in the client. | 121 // The page is trying to move the RenderView's representation in the client. |
| 122 virtual void RequestMove(const gfx::Rect& new_bounds) {} | 122 virtual void RequestMove(const gfx::Rect& new_bounds) {} |
| 123 | 123 |
| 124 // The pending page load was canceled. | 124 // The pending page load was canceled. |
| 125 virtual void DidCancelLoading() {} | 125 virtual void DidCancelLoading() {} |
| 126 | 126 |
| 127 // The RenderView made progress loading a page's top frame. | |
| 128 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame | |
| 129 // entirely loaded). | |
| 130 virtual void DidChangeLoadProgress(double progress) {} | |
| 131 | |
| 132 // The RenderView's main frame document element is ready. This happens when | 127 // The RenderView's main frame document element is ready. This happens when |
| 133 // the document has finished parsing. | 128 // the document has finished parsing. |
| 134 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} | 129 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} |
| 135 | 130 |
| 136 // The page wants to close the active view in this tab. | 131 // The page wants to close the active view in this tab. |
| 137 virtual void RouteCloseEvent(RenderViewHost* rvh) {} | 132 virtual void RouteCloseEvent(RenderViewHost* rvh) {} |
| 138 | 133 |
| 139 // The page wants to post a message to the active view in this tab. | 134 // The page wants to post a message to the active view in this tab. |
| 140 virtual void RouteMessageEvent( | 135 virtual void RouteMessageEvent( |
| 141 RenderViewHost* rvh, | 136 RenderViewHost* rvh, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 virtual void AccessibilityEventReceived( | 292 virtual void AccessibilityEventReceived( |
| 298 const std::vector<AXEventNotificationDetails>& details) {} | 293 const std::vector<AXEventNotificationDetails>& details) {} |
| 299 | 294 |
| 300 protected: | 295 protected: |
| 301 virtual ~RenderViewHostDelegate() {} | 296 virtual ~RenderViewHostDelegate() {} |
| 302 }; | 297 }; |
| 303 | 298 |
| 304 } // namespace content | 299 } // namespace content |
| 305 | 300 |
| 306 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 301 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |