| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 virtual void RequestMove(const gfx::Rect& new_bounds) {} | 458 virtual void RequestMove(const gfx::Rect& new_bounds) {} |
| 459 | 459 |
| 460 // The RenderView began loading a new page. This corresponds to WebKit's | 460 // The RenderView began loading a new page. This corresponds to WebKit's |
| 461 // notion of the throbber starting. | 461 // notion of the throbber starting. |
| 462 virtual void DidStartLoading() {} | 462 virtual void DidStartLoading() {} |
| 463 | 463 |
| 464 // The RenderView stopped loading a page. This corresponds to WebKit's | 464 // The RenderView stopped loading a page. This corresponds to WebKit's |
| 465 // notion of the throbber stopping. | 465 // notion of the throbber stopping. |
| 466 virtual void DidStopLoading() {} | 466 virtual void DidStopLoading() {} |
| 467 | 467 |
| 468 // The pending page load was canceled. |
| 469 virtual void DidCancelLoading() {} |
| 470 |
| 468 // The RenderView made progress loading a page's top frame. | 471 // The RenderView made progress loading a page's top frame. |
| 469 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame | 472 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame |
| 470 // entirely loaded). | 473 // entirely loaded). |
| 471 virtual void DidChangeLoadProgress(double progress) {} | 474 virtual void DidChangeLoadProgress(double progress) {} |
| 472 | 475 |
| 473 // The RenderView's main frame document element is ready. This happens when | 476 // The RenderView's main frame document element is ready. This happens when |
| 474 // the document has finished parsing. | 477 // the document has finished parsing. |
| 475 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} | 478 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} |
| 476 | 479 |
| 477 // The onload handler in the RenderView's main frame has completed. | 480 // The onload handler in the RenderView's main frame has completed. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 // Returns true if the delegate will take care of asking the user, otherwise | 574 // Returns true if the delegate will take care of asking the user, otherwise |
| 572 // the caller will do the default behavior. | 575 // the caller will do the default behavior. |
| 573 bool RequestDesktopNotificationPermission(const GURL& source_origin, | 576 bool RequestDesktopNotificationPermission(const GURL& source_origin, |
| 574 int callback_context); | 577 int callback_context); |
| 575 | 578 |
| 576 protected: | 579 protected: |
| 577 virtual ~RenderViewHostDelegate() {} | 580 virtual ~RenderViewHostDelegate() {} |
| 578 }; | 581 }; |
| 579 | 582 |
| 580 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 583 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |