| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_VIEWS_TILE_ITEM_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ |
| 7 | 7 |
| 8 #include "ui/app_list/app_list_export.h" |
| 8 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
| 9 #include "ui/views/controls/button/custom_button.h" | 10 #include "ui/views/controls/button/custom_button.h" |
| 10 | 11 |
| 11 namespace views { | 12 namespace views { |
| 12 class ImageView; | 13 class ImageView; |
| 13 class Label; | 14 class Label; |
| 14 } | 15 } |
| 15 | 16 |
| 16 namespace app_list { | 17 namespace app_list { |
| 17 | 18 |
| 18 class AppListItem; | 19 class AppListItem; |
| 19 | 20 |
| 20 // The view for a tile in the app list on the start/search page. | 21 // The view for a tile in the app list on the start/search page. |
| 21 class TileItemView : public views::CustomButton, public views::ButtonListener { | 22 class APP_LIST_EXPORT TileItemView : public views::CustomButton, |
| 23 public views::ButtonListener { |
| 22 public: | 24 public: |
| 23 TileItemView(); | 25 TileItemView(); |
| 24 virtual ~TileItemView(); | 26 virtual ~TileItemView(); |
| 25 | 27 |
| 26 void SetAppListItem(AppListItem* item); | 28 void SetAppListItem(AppListItem* item); |
| 27 | 29 |
| 28 private: | 30 private: |
| 29 class TileItemBackground; | 31 class TileItemBackground; |
| 30 | 32 |
| 31 // Overridden from views::View: | 33 // Overridden from views::View: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 42 views::Label* title_; // Owned by views hierarchy. | 44 views::Label* title_; // Owned by views hierarchy. |
| 43 | 45 |
| 44 TileItemBackground* background_; | 46 TileItemBackground* background_; |
| 45 | 47 |
| 46 DISALLOW_COPY_AND_ASSIGN(TileItemView); | 48 DISALLOW_COPY_AND_ASSIGN(TileItemView); |
| 47 }; | 49 }; |
| 48 | 50 |
| 49 } // namespace app_list | 51 } // namespace app_list |
| 50 | 52 |
| 51 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ | 53 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ |
| OLD | NEW |