OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_ | |
7 #pragma once | |
8 | |
9 #include "base/basictypes.h" | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "chrome/browser/download/download_shelf_context_menu.h" | |
12 | |
13 class BaseDownloadItemModel; | |
14 | |
15 namespace gfx { | |
16 class Point; | |
17 } | |
18 | |
19 namespace views { | |
20 class Menu2; | |
21 } | |
22 | |
23 class DownloadShelfContextMenuView : public DownloadShelfContextMenu { | |
24 public: | |
25 explicit DownloadShelfContextMenuView(BaseDownloadItemModel* model); | |
26 virtual ~DownloadShelfContextMenuView(); | |
27 | |
28 void Run(const gfx::Point& point); | |
29 | |
30 // This method runs when the caller has been deleted and we should not attempt | |
31 // to access |download_|. | |
asanka
2011/05/20 21:45:16
Nit: download_item()
tfarina
2011/05/20 22:19:23
Done.
| |
32 void Stop(); | |
33 | |
34 private: | |
35 scoped_ptr<views::Menu2> menu_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenuView); | |
38 }; | |
39 | |
40 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_ | |
OLD | NEW |