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 page wants to close the active view in this tab. | 142 // The page wants to close the active view in this tab. |
148 virtual void RouteCloseEvent(RenderViewHost* rvh) {} | 143 virtual void RouteCloseEvent(RenderViewHost* rvh) {} |
149 | 144 |
150 // The page wants to post a message to the active view in this tab. | 145 // The page wants to post a message to the active view in this tab. |
151 virtual void RouteMessageEvent( | 146 virtual void RouteMessageEvent( |
152 RenderViewHost* rvh, | 147 RenderViewHost* rvh, |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 virtual void AccessibilityEventReceived( | 303 virtual void AccessibilityEventReceived( |
309 const std::vector<AXEventNotificationDetails>& details) {} | 304 const std::vector<AXEventNotificationDetails>& details) {} |
310 | 305 |
311 protected: | 306 protected: |
312 virtual ~RenderViewHostDelegate() {} | 307 virtual ~RenderViewHostDelegate() {} |
313 }; | 308 }; |
314 | 309 |
315 } // namespace content | 310 } // namespace content |
316 | 311 |
317 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 312 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |