blob: 6f1a8e2dadd1a5d9dd0143f6b40657e8b2757d12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_
#define CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_
#pragma once
#import <Cocoa/Cocoa.h>
#include "base/compiler_specific.h"
#include "chrome/browser/download/download_shelf.h"
class BaseDownloadItemModel;
@class DownloadShelfController;
// A class to bridge the chromium download shelf to mac gui. This is just a
// wrapper class that forward everything to DownloadShelfController.
class DownloadShelfMac : public DownloadShelf {
public:
DownloadShelfMac(Browser* browser, DownloadShelfController* controller);
// DownloadShelf implementation.
virtual bool IsShowing() const OVERRIDE;
virtual bool IsClosing() const OVERRIDE;
virtual Browser* browser() const OVERRIDE;
protected:
virtual void DoAddDownload(BaseDownloadItemModel* download_model) OVERRIDE;
virtual void DoShow() OVERRIDE;
virtual void DoClose() OVERRIDE;
private:
// The browser that owns this shelf.
Browser* browser_;
DownloadShelfController* shelf_controller_; // weak, owns us
};
#endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_
|