OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APP_LIST_APP_CONTEXT_MENU_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_CONTEXT_MENU_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_APP_CONTEXT_MENU_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_CONTEXT_MENU_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 // Defines command ids, used in context menu of all types. | 24 // Defines command ids, used in context menu of all types. |
25 enum CommandId { | 25 enum CommandId { |
26 LAUNCH_NEW = 100, | 26 LAUNCH_NEW = 100, |
27 TOGGLE_PIN, | 27 TOGGLE_PIN, |
28 SHOW_APP_INFO, | 28 SHOW_APP_INFO, |
29 OPTIONS, | 29 OPTIONS, |
30 UNINSTALL, | 30 UNINSTALL, |
31 REMOVE_FROM_FOLDER, | 31 REMOVE_FROM_FOLDER, |
32 MENU_NEW_WINDOW, | 32 MENU_NEW_WINDOW, |
33 MENU_NEW_INCOGNITO_WINDOW, | 33 MENU_NEW_INCOGNITO_WINDOW, |
| 34 INSTALL, |
34 // Order matters in USE_LAUNCH_TYPE_* and must match the LaunchType enum. | 35 // Order matters in USE_LAUNCH_TYPE_* and must match the LaunchType enum. |
35 USE_LAUNCH_TYPE_COMMAND_START = 200, | 36 USE_LAUNCH_TYPE_COMMAND_START = 200, |
36 USE_LAUNCH_TYPE_PINNED = USE_LAUNCH_TYPE_COMMAND_START, | 37 USE_LAUNCH_TYPE_PINNED = USE_LAUNCH_TYPE_COMMAND_START, |
37 USE_LAUNCH_TYPE_REGULAR, | 38 USE_LAUNCH_TYPE_REGULAR, |
38 USE_LAUNCH_TYPE_FULLSCREEN, | 39 USE_LAUNCH_TYPE_FULLSCREEN, |
39 USE_LAUNCH_TYPE_WINDOW, | 40 USE_LAUNCH_TYPE_WINDOW, |
40 USE_LAUNCH_TYPE_COMMAND_END, | 41 USE_LAUNCH_TYPE_COMMAND_END, |
41 }; | 42 }; |
42 | 43 |
43 ~AppContextMenu() override; | 44 ~AppContextMenu() override; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 AppListControllerDelegate* controller_; | 78 AppListControllerDelegate* controller_; |
78 | 79 |
79 std::unique_ptr<ui::SimpleMenuModel> menu_model_; | 80 std::unique_ptr<ui::SimpleMenuModel> menu_model_; |
80 | 81 |
81 DISALLOW_COPY_AND_ASSIGN(AppContextMenu); | 82 DISALLOW_COPY_AND_ASSIGN(AppContextMenu); |
82 }; | 83 }; |
83 | 84 |
84 } // namespace app_list | 85 } // namespace app_list |
85 | 86 |
86 #endif // CHROME_BROWSER_UI_APP_LIST_APP_CONTEXT_MENU_H_ | 87 #endif // CHROME_BROWSER_UI_APP_LIST_APP_CONTEXT_MENU_H_ |
OLD | NEW |