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

Side by Side Diff: chrome/browser/ui/cocoa/download/download_shelf_mac.h

Issue 2688413012: Don't animate the download shelf when entering/exiting fullscreen. (Closed)
Patch Set: Turn on animation for all tests except the one that was flaky due to animation. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/download/download_shelf.h" 11 #include "chrome/browser/download/download_shelf.h"
12 12
13 @class DownloadShelfController; 13 @class DownloadShelfController;
14 14
15 // A class to bridge the chromium download shelf to mac gui. This is just a 15 // A class to bridge the chromium download shelf to mac gui. This is just a
16 // wrapper class that forward everything to DownloadShelfController. 16 // wrapper class that forward everything to DownloadShelfController.
17 17
18 class DownloadShelfMac : public DownloadShelf { 18 class DownloadShelfMac : public DownloadShelf {
19 public: 19 public:
20 DownloadShelfMac(Browser* browser, DownloadShelfController* controller); 20 DownloadShelfMac(Browser* browser, DownloadShelfController* controller);
21 21
22 // DownloadShelf implementation. 22 // DownloadShelf implementation.
23 bool IsShowing() const override; 23 bool IsShowing() const override;
24 bool IsClosing() const override; 24 bool IsClosing() const override;
25 Browser* browser() const override; 25 Browser* browser() const override;
26 26
27 protected: 27 protected:
28 void DoAddDownload(content::DownloadItem* download) override; 28 void DoAddDownload(content::DownloadItem* download) override;
29 void DoShow() override; 29 void DoOpen() override;
30 void DoClose(CloseReason reason) override; 30 void DoClose(CloseReason reason) override;
31 void DoHide() override;
32 void DoUnhide() override;
31 33
32 private: 34 private:
33 // The browser that owns this shelf. 35 // The browser that owns this shelf.
34 Browser* browser_; 36 Browser* browser_;
35 37
36 DownloadShelfController* shelf_controller_; // weak, owns us 38 DownloadShelfController* shelf_controller_; // weak, owns us
37 }; 39 };
38 40
39 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ 41 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698