Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1616)

Unified Diff: chrome/common/temp_scaffolding_stubs.h

Issue 115740: Move download shelf from per-tab to per-window (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/tabs/tab_renderer.cc ('k') | chrome/common/temp_scaffolding_stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/temp_scaffolding_stubs.h
===================================================================
--- chrome/common/temp_scaffolding_stubs.h (revision 17483)
+++ chrome/common/temp_scaffolding_stubs.h (working copy)
@@ -22,6 +22,12 @@
#include "googleurl/src/gurl.h"
#include "third_party/skia/include/core/SkBitmap.h"
+#if defined(OS_MACOSX)
+#include "chrome/browser/download/download_item_model.h"
+#include "chrome/browser/download/download_shelf.h"
+#endif
+
+
class BookmarkContextMenu;
class BookmarkNode;
class Browser;
@@ -421,4 +427,48 @@
class BaseDragSource {
};
+//--------------------------------------------------------------------------
+
+#if defined(OS_MACOSX)
+
+class DownloadShelfMac : public DownloadShelf {
+ public:
+ explicit DownloadShelfMac(Browser* browser)
+ : DownloadShelf(browser), visible_(false) { }
+ virtual void AddDownload(BaseDownloadItemModel* download_model)
+ { NOTIMPLEMENTED(); visible_ = true; }
+ virtual bool IsShowing() const { NOTIMPLEMENTED(); return visible_; }
+ virtual bool IsClosing() const { NOTIMPLEMENTED(); return visible_; }
+ virtual void Show() { NOTIMPLEMENTED(); visible_ = true; }
+ virtual void Close() { NOTIMPLEMENTED(); visible_ = false; }
+ private:
+ bool visible_;
+};
+
+#endif
+
+//---------------------------------------------------------------------------
+// These stubs are for extensions
+
+namespace views {
+class HWNDView {
+ public:
+ int width() { NOTIMPLEMENTED(); return 0; }
+ int height() { NOTIMPLEMENTED(); return 0; }
+ void InitHidden() { NOTIMPLEMENTED(); }
+ void SetPreferredSize(const gfx::Size& size) { NOTIMPLEMENTED(); }
+ virtual void SetBackground(const SkBitmap&) { NOTIMPLEMENTED(); }
+ virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); }
+ void SizeToPreferredSize() { NOTIMPLEMENTED(); }
+ bool IsVisible() const { NOTIMPLEMENTED(); return false; }
+ void Layout() { NOTIMPLEMENTED(); }
+ void SchedulePaint() { NOTIMPLEMENTED(); }
+ HWNDView* GetParent() const { NOTIMPLEMENTED(); return NULL; }
+ virtual gfx::Size GetPreferredSize() { NOTIMPLEMENTED(); return gfx::Size(); }
+ gfx::NativeWindow GetHWND() { NOTIMPLEMENTED(); return 0; }
+ void Detach() { NOTIMPLEMENTED(); }
+ gfx::Widget* GetWidget() { NOTIMPLEMENTED(); return NULL; }
+};
+} // namespace views
+
#endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
« no previous file with comments | « chrome/browser/views/tabs/tab_renderer.cc ('k') | chrome/common/temp_scaffolding_stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698