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_AURA_APP_LIST_CHROME_APP_LIST_ITEM_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_CHROME_APP_LIST_ITEM_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_CHROME_APP_LIST_ITEM_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_CHROME_APP_LIST_ITEM_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/app_list/app_list_item_model.h" | 9 #include "ash/app_list/app_list_item_model.h" |
10 | 10 |
11 // Base class of all chrome app list items. Chrome's AppListViewDelegate assumes | 11 // Base class of all chrome app list items. Chrome's AppListViewDelegate assumes |
12 // all items are derived from this class and calls Activate when an item is | 12 // all items are derived from this class and calls Activate when an item is |
13 // activated. | 13 // activated. |
14 class ChromeAppListItem : public aura_shell::AppListItemModel { | 14 class ChromeAppListItem : public ash::AppListItemModel { |
15 public: | 15 public: |
16 // Activates the item. |event_flags| holds flags of a mouse/keyboard event | 16 // Activates the item. |event_flags| holds flags of a mouse/keyboard event |
17 // associated with this activation. | 17 // associated with this activation. |
18 virtual void Activate(int event_flags) = 0; | 18 virtual void Activate(int event_flags) = 0; |
19 | 19 |
20 protected: | 20 protected: |
21 virtual ~ChromeAppListItem() {} | 21 virtual ~ChromeAppListItem() {} |
22 }; | 22 }; |
23 | 23 |
24 #endif // CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_CHROME_APP_LIST_ITEM_H_ | 24 #endif // CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_CHROME_APP_LIST_ITEM_H_ |
OLD | NEW |