diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-11 15:15:08 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-11 15:15:08 +0000 |
commit | 2549749a92f0d77fb0dd27b29747721e2a0c46e7 (patch) | |
tree | d5b2e93262cd34b6f127a99444ea246106b55e6c /chrome/browser/tab_contents | |
parent | eca50e128ff1bc41bc0cc1d3fdf2e015ba459d4c (diff) | |
download | chromium_src-2549749a92f0d77fb0dd27b29747721e2a0c46e7.zip chromium_src-2549749a92f0d77fb0dd27b29747721e2a0c46e7.tar.gz chromium_src-2549749a92f0d77fb0dd27b29747721e2a0c46e7.tar.bz2 |
Adds a notification event for onload. I would have liked to plumb this
through to the TabContentsDelegate, but at the time I need another
delegate will have been installed.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3306015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 9 | ||||
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.h | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index 01a303f..19f403b 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -2625,6 +2625,15 @@ void TabContents::DidStopLoading() { SetIsLoading(false, details.get()); } +void TabContents::DocumentOnLoadCompletedInMainFrame( + RenderViewHost* render_view_host, + int32 page_id) { + NotificationService::current()->Notify( + NotificationType::LOAD_COMPLETED_MAIN_FRAME, + Source<TabContents>(this), + Details<int>(&page_id)); +} + void TabContents::DidRedirectProvisionalLoad(int32 page_id, const GURL& source_url, const GURL& target_url) { diff --git a/chrome/browser/tab_contents/tab_contents.h b/chrome/browser/tab_contents/tab_contents.h index 56b2844..c0ed641 100644 --- a/chrome/browser/tab_contents/tab_contents.h +++ b/chrome/browser/tab_contents/tab_contents.h @@ -938,6 +938,9 @@ class TabContents : public PageNavigator, virtual void RequestMove(const gfx::Rect& new_bounds); virtual void DidStartLoading(); virtual void DidStopLoading(); + virtual void DocumentOnLoadCompletedInMainFrame( + RenderViewHost* render_view_host, + int32 page_id); virtual void RequestOpenURL(const GURL& url, const GURL& referrer, WindowOpenDisposition disposition); virtual void DomOperationResponse(const std::string& json_string, |