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

Side by Side Diff: chrome/browser/ui/views/download/download_shelf_context_menu_view.h

Issue 7056001: views: Split DownloadShelfContextMenuWin out to its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include on toolkit_views Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698