diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-04 22:19:41 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-04 22:19:41 +0000 |
commit | 3edd952ea05dfb5c950b63768fc9cc9ec807f6d8 (patch) | |
tree | a78e9bef8fe0efbff8b56fb6c6f8bc23e344c46e /chrome/common/temp_scaffolding_stubs.cc | |
parent | c0a2ee2bb8bfcc3ade688d43a95cc3404eea3748 (diff) | |
download | chromium_src-3edd952ea05dfb5c950b63768fc9cc9ec807f6d8.zip chromium_src-3edd952ea05dfb5c950b63768fc9cc9ec807f6d8.tar.gz chromium_src-3edd952ea05dfb5c950b63768fc9cc9ec807f6d8.tar.bz2 |
Basic download shelf implementation on linux.
It shows and hides at appropriate times, and that's about it.
TEST=navigate to a savable page and select "save page as" from the page menu. Click the x. Save the page again. The shelf should pop up, go away, pop up again.
Review URL: http://codereview.chromium.org/38004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.cc')
-rw-r--r-- | chrome/common/temp_scaffolding_stubs.cc | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc index c8f570b..5cd4428 100644 --- a/chrome/common/temp_scaffolding_stubs.cc +++ b/chrome/common/temp_scaffolding_stubs.cc @@ -379,30 +379,29 @@ void TabContents::SetIsCrashed(bool state) { delegate_->ContentsStateChanged(this); } -void TabContents::SetDownloadShelfVisible(bool visible) { - if (shelf_visible_ != visible) { - if (visible) { - // Invoke GetDownloadShelf to force the shelf to be created. - GetDownloadShelf(); - } - shelf_visible_ = visible; - - if (delegate_) - delegate_->ContentsStateChanged(this); - } +#if defined(OS_MACOSX) +void TabContents::OnStartDownload(DownloadItem* download){ + NOTIMPLEMENTED(); +} + +DownloadShelf* TabContents::GetDownloadShelf(){ + NOTIMPLEMENTED(); + return NULL; +} - // SetShelfVisible can force-close the shelf, so make sure we lay out - // everything correctly, as if the animation had finished. This doesn't - // matter for showing the shelf, as the show animation will do it. - ToolbarSizeChanged(false); +void TabContents::ReleaseDownloadShelf() { + NOTIMPLEMENTED(); } -void TabContents::ToolbarSizeChanged(bool is_animating) { - TabContentsDelegate* d = delegate(); - if (d) - d->ToolbarSizeChanged(this, is_animating); +void TabContents::MigrateShelf(TabContents* from, TabContents* to){ + NOTIMPLEMENTED(); } +void TabContents::MigrateShelfFrom(TabContents* tab_contents){ + NOTIMPLEMENTED(); +} +#endif + //-------------------------------------------------------------------------- void RLZTracker::CleanupRlz() { |