Chromium Code Reviews| Index: ui/app_list/views/tile_item_view.h |
| diff --git a/ui/app_list/views/tile_item_view.h b/ui/app_list/views/tile_item_view.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a47ae84e0a5f50e145ce4555fef1b66b35c5497a |
| --- /dev/null |
| +++ b/ui/app_list/views/tile_item_view.h |
| @@ -0,0 +1,49 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ |
| +#define UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ |
| + |
| +#include "ui/views/controls/button/button.h" |
| +#include "ui/views/controls/button/custom_button.h" |
| + |
| +namespace { |
| +class TileItemBackground; |
| +} |
| + |
| +namespace views { |
| +class ImageView; |
| +class Label; |
| +} |
| + |
| +namespace app_list { |
| + |
| +class AppListItem; |
| + |
| +// The view for a tile in the app list on the start/search page. |
| +class TileItemView : public views::CustomButton, public views::ButtonListener { |
| + public: |
| + TileItemView(); |
| + virtual ~TileItemView(); |
| + |
| + void SetAppListItem(AppListItem* item); |
| + |
| + private: |
| + // Overridden from views::View: |
| + virtual gfx::Size GetPreferredSize() OVERRIDE; |
|
tapted
2014/05/20 05:22:31
heads-up: I think this is about to become a const
calamity
2014/05/22 03:31:16
Cool. I"ll rebase when I need to I guess.
|
| + |
| + // Overridden from views::ButtonListener: |
| + virtual void ButtonPressed(views::Button* sender, |
| + const ui::Event& event) OVERRIDE; |
| + |
| + AppListItem* item_; |
|
tapted
2014/05/20 05:22:31
these should have ownership comments
calamity
2014/05/22 03:31:16
Done.
|
| + views::ImageView* icon_; |
| + views::Label* title_; |
| + |
| + TileItemBackground* background_; |
| +}; |
| + |
| +} // namespace app_list |
| + |
| +#endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ |