| 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 UI_APP_LIST_APP_LIST_MENU_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_MENU_H_ |
| 6 #define UI_APP_LIST_APP_LIST_MENU_H_ | 6 #define UI_APP_LIST_APP_LIST_MENU_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/app_list/app_list_view_delegate.h" | 9 #include "ui/app_list/app_list_view_delegate.h" |
| 10 #include "ui/base/models/simple_menu_model.h" | 10 #include "ui/base/models/simple_menu_model.h" |
| 11 | 11 |
| 12 namespace app_list { | 12 namespace app_list { |
| 13 | 13 |
| 14 // Menu for the app list. This is shown in the top right hand corner of the | 14 // Menu for the app list. This is shown in the top right hand corner of the |
| 15 // app list. | 15 // app list. |
| 16 // TODO(benwells): We should consider moving this into Chrome. | 16 // TODO(benwells): We should delete this. http://crbug.com/600915. |
| 17 class AppListMenu : public ui::SimpleMenuModel::Delegate { | 17 class AppListMenu : public ui::SimpleMenuModel::Delegate { |
| 18 public: | 18 public: |
| 19 enum AppListMenuCommands { | 19 enum AppListMenuCommands { |
| 20 SHOW_SETTINGS, | 20 SHOW_SETTINGS, |
| 21 SHOW_HELP, | 21 SHOW_HELP, |
| 22 SHOW_FEEDBACK, | 22 SHOW_FEEDBACK, |
| 23 // |SELECT_PROFILE| must remain the last enum because values greater than | 23 // |SELECT_PROFILE| must remain the last enum because values greater than |
| 24 // |SELECT_PROFILE| are used to indicate a profile index. | 24 // |SELECT_PROFILE| are used to indicate a profile index. |
| 25 SELECT_PROFILE, | 25 SELECT_PROFILE, |
| 26 }; | 26 }; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 42 ui::SimpleMenuModel menu_model_; | 42 ui::SimpleMenuModel menu_model_; |
| 43 AppListViewDelegate* delegate_; | 43 AppListViewDelegate* delegate_; |
| 44 AppListViewDelegate::Users users_; | 44 AppListViewDelegate::Users users_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(AppListMenu); | 46 DISALLOW_COPY_AND_ASSIGN(AppListMenu); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace app_list | 49 } // namespace app_list |
| 50 | 50 |
| 51 #endif // UI_APP_LIST_APP_LIST_MENU_H_ | 51 #endif // UI_APP_LIST_APP_LIST_MENU_H_ |
| OLD | NEW |