OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_ | 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_ | 6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "chrome/browser/download/download_shelf_context_menu.h" | 13 #include "chrome/browser/download/download_shelf_context_menu.h" |
14 #include "chrome/browser/ui/views/download/download_item_view.h" | 14 #include "chrome/browser/ui/views/download/download_item_view.h" |
15 #include "ui/base/ui_base_types.h" | 15 #include "ui/base/ui_base_types.h" |
16 | 16 |
17 namespace content { | |
18 class DownloadItem; | |
19 class PageNavigator; | |
20 } | |
21 | |
22 namespace gfx { | 17 namespace gfx { |
23 class Rect; | 18 class Rect; |
24 } | 19 } |
25 | 20 |
26 namespace views { | 21 namespace views { |
27 class MenuRunner; | 22 class MenuRunner; |
28 class Widget; | 23 class Widget; |
29 } | 24 } |
30 | 25 |
31 class DownloadShelfContextMenuView : public DownloadShelfContextMenu { | 26 class DownloadShelfContextMenuView : public DownloadShelfContextMenu { |
(...skipping 21 matching lines...) Expand all Loading... |
53 | 48 |
54 std::unique_ptr<views::MenuRunner> menu_runner_; | 49 std::unique_ptr<views::MenuRunner> menu_runner_; |
55 | 50 |
56 // Time the menu was closed. | 51 // Time the menu was closed. |
57 base::TimeTicks close_time_; | 52 base::TimeTicks close_time_; |
58 | 53 |
59 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenuView); | 54 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenuView); |
60 }; | 55 }; |
61 | 56 |
62 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_ | 57 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_ |
OLD | NEW |