| 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_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 virtual void DidStopLoading() {} | 267 virtual void DidStopLoading() {} |
| 268 | 268 |
| 269 // The pending page load was canceled. | 269 // The pending page load was canceled. |
| 270 virtual void DidCancelLoading() {} | 270 virtual void DidCancelLoading() {} |
| 271 | 271 |
| 272 // The RenderView made progress loading a page's top frame. | 272 // The RenderView made progress loading a page's top frame. |
| 273 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame | 273 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame |
| 274 // entirely loaded). | 274 // entirely loaded). |
| 275 virtual void DidChangeLoadProgress(double progress) {} | 275 virtual void DidChangeLoadProgress(double progress) {} |
| 276 | 276 |
| 277 // Some frame in the current RenderView has a ready document element. This | 277 // The RenderView's main frame document element is ready. This happens when |
| 278 // happens when the document has finished parsing. | 278 // the document has finished parsing. |
| 279 virtual void DocumentAvailableInFrame(RenderViewHost* render_view_host, | 279 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} |
| 280 bool main_frame, | |
| 281 const GURL& source_url) {} | |
| 282 | 280 |
| 283 // The onload handler in the RenderView's main frame has completed. | 281 // The onload handler in the RenderView's main frame has completed. |
| 284 virtual void DocumentOnLoadCompletedInMainFrame( | 282 virtual void DocumentOnLoadCompletedInMainFrame( |
| 285 RenderViewHost* render_view_host, | 283 RenderViewHost* render_view_host, |
| 286 int32 page_id) {} | 284 int32 page_id) {} |
| 287 | 285 |
| 288 // The page wants to open a URL with the specified disposition. | 286 // The page wants to open a URL with the specified disposition. |
| 289 virtual void RequestOpenURL(const GURL& url, | 287 virtual void RequestOpenURL(const GURL& url, |
| 290 const content::Referrer& referrer, | 288 const content::Referrer& referrer, |
| 291 WindowOpenDisposition disposition, | 289 WindowOpenDisposition disposition, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 // Notification that the view has lost the mouse lock. | 402 // Notification that the view has lost the mouse lock. |
| 405 virtual void LostMouseLock() {} | 403 virtual void LostMouseLock() {} |
| 406 | 404 |
| 407 protected: | 405 protected: |
| 408 virtual ~RenderViewHostDelegate() {} | 406 virtual ~RenderViewHostDelegate() {} |
| 409 }; | 407 }; |
| 410 | 408 |
| 411 } // namespace content | 409 } // namespace content |
| 412 | 410 |
| 413 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 411 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |