| 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 UI_AURA_SHELL_APP_LIST_APP_LIST_ITEM_MODEL_H_ | 5 #ifndef UI_AURA_SHELL_APP_LIST_APP_LIST_ITEM_MODEL_H_ |
| 6 #define UI_AURA_SHELL_APP_LIST_APP_LIST_ITEM_MODEL_H_ | 6 #define UI_AURA_SHELL_APP_LIST_APP_LIST_ITEM_MODEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
| 14 #include "ash/ash_export.h" | 14 #include "ash/ash_export.h" |
| 15 | 15 |
| 16 namespace aura_shell { | 16 namespace ash { |
| 17 | 17 |
| 18 class AppListItemModelObserver; | 18 class AppListItemModelObserver; |
| 19 | 19 |
| 20 // AppListItemModel provides icon and title to be shown in a TileView and | 20 // AppListItemModel provides icon and title to be shown in a TileView and |
| 21 // action to be executed when the TileView is activated (clicked or enter | 21 // action to be executed when the TileView is activated (clicked or enter |
| 22 // key it hit). | 22 // key it hit). |
| 23 class ASH_EXPORT AppListItemModel { | 23 class ASH_EXPORT AppListItemModel { |
| 24 public: | 24 public: |
| 25 AppListItemModel(); | 25 AppListItemModel(); |
| 26 virtual ~AppListItemModel(); | 26 virtual ~AppListItemModel(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 SkBitmap icon_; | 44 SkBitmap icon_; |
| 45 std::string title_; | 45 std::string title_; |
| 46 | 46 |
| 47 ObserverList<AppListItemModelObserver> observers_; | 47 ObserverList<AppListItemModelObserver> observers_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(AppListItemModel); | 49 DISALLOW_COPY_AND_ASSIGN(AppListItemModel); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace aura_shell | 52 } // namespace ash |
| 53 | 53 |
| 54 #endif // #define ASH_APP_LIST_APP_LIST_ITEM_MODEL_OBSERVER_H_ | 54 #endif // #define ASH_APP_LIST_APP_LIST_ITEM_MODEL_OBSERVER_H_ |
| OLD | NEW |