OLD | NEW |
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_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_ |
7 | 7 |
8 #include "ash/common/shelf/shelf_alignment_menu.h" | 8 #include "ash/common/shelf/shelf_alignment_menu.h" |
9 #include "ash/common/shelf/shelf_item_types.h" | 9 #include "ash/common/shelf/shelf_item_types.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "ui/base/models/simple_menu_model.h" | 12 #include "ui/base/models/simple_menu_model.h" |
13 | 13 |
14 class ChromeLauncherControllerImpl; | 14 class ChromeLauncherControllerImpl; |
15 | 15 |
16 namespace ash { | 16 namespace ash { |
17 class WmShelf; | 17 class WmShelf; |
18 } | 18 } |
19 | 19 |
20 // Base class for context menu which is shown for a regular extension item in | 20 // Base class for context menu which is shown for a regular extension item in |
21 // the shelf, or for an Arc app item in the shelf, or shown when right click | 21 // the shelf, or for an ARC app item in the shelf, or shown when right click |
22 // on desktop shell. | 22 // on desktop shell. |
23 class LauncherContextMenu : public ui::SimpleMenuModel, | 23 class LauncherContextMenu : public ui::SimpleMenuModel, |
24 public ui::SimpleMenuModel::Delegate { | 24 public ui::SimpleMenuModel::Delegate { |
25 public: | 25 public: |
26 ~LauncherContextMenu() override; | 26 ~LauncherContextMenu() override; |
27 | 27 |
28 // Static function to create contextmenu instance. | 28 // Static function to create contextmenu instance. |
29 static LauncherContextMenu* Create(ChromeLauncherControllerImpl* controller, | 29 static LauncherContextMenu* Create(ChromeLauncherControllerImpl* controller, |
30 const ash::ShelfItem* item, | 30 const ash::ShelfItem* item, |
31 ash::WmShelf* wm_shelf); | 31 ash::WmShelf* wm_shelf); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 ash::ShelfItem item_; | 95 ash::ShelfItem item_; |
96 | 96 |
97 ash::ShelfAlignmentMenu shelf_alignment_menu_; | 97 ash::ShelfAlignmentMenu shelf_alignment_menu_; |
98 | 98 |
99 ash::WmShelf* wm_shelf_; | 99 ash::WmShelf* wm_shelf_; |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(LauncherContextMenu); | 101 DISALLOW_COPY_AND_ASSIGN(LauncherContextMenu); |
102 }; | 102 }; |
103 | 103 |
104 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_ | 104 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_ |
OLD | NEW |