| Index: ui/app_list/app_list_item_view.h
|
| diff --git a/ui/app_list/app_list_item_view.h b/ui/app_list/app_list_item_view.h
|
| index 00479242a07fef28a563674cbfa5feb47ee8e700..3b7e9b3ed9b194480cb2db641185f5d93dbc0237 100644
|
| --- a/ui/app_list/app_list_item_view.h
|
| +++ b/ui/app_list/app_list_item_view.h
|
| @@ -34,37 +34,21 @@ class APP_LIST_EXPORT AppListItemView : public views::CustomButton,
|
| public views::ContextMenuController,
|
| public AppListItemModelObserver {
|
| public:
|
| + // Internal class name.
|
| + static const char kViewClassName[];
|
| +
|
| AppListItemView(AppsGridView* apps_grid_view,
|
| AppListItemModel* model,
|
| views::ButtonListener* listener);
|
| virtual ~AppListItemView();
|
|
|
| - static gfx::Size GetPreferredSizeForIconSize(const gfx::Size& icon_size);
|
| -
|
| - // For testing. Testing calls this function to set minimum title width in
|
| - // pixels to get rid dependency on default font width.
|
| - static void SetMinTitleWidth(int width);
|
| -
|
| - void SetSelected(bool selected);
|
| - bool selected() const {
|
| - return selected_;
|
| - }
|
| -
|
| void SetIconSize(const gfx::Size& size);
|
|
|
| - AppListItemModel* model() const {
|
| - return model_;
|
| - }
|
| -
|
| - // Internal class name.
|
| - static const char kViewClassName[];
|
| + AppListItemModel* model() const { return model_; }
|
|
|
| private:
|
| class IconOperation;
|
|
|
| - // Returns true for v2 UI.
|
| - bool IsV2() const;
|
| -
|
| // Get icon from model and schedule background processing.
|
| void UpdateIcon();
|
|
|
| @@ -82,7 +66,6 @@ class APP_LIST_EXPORT AppListItemView : public views::CustomButton,
|
|
|
| // views::View overrides:
|
| virtual std::string GetClassName() const OVERRIDE;
|
| - virtual gfx::Size GetPreferredSize() OVERRIDE;
|
| virtual void Layout() OVERRIDE;
|
| virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
|
| virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
|
| @@ -103,7 +86,6 @@ class APP_LIST_EXPORT AppListItemView : public views::CustomButton,
|
| scoped_ptr<views::MenuRunner> context_menu_runner_;
|
|
|
| gfx::Size icon_size_;
|
| - bool selected_;
|
|
|
| scoped_refptr<IconOperation> icon_op_;
|
| base::WeakPtrFactory<AppListItemView> apply_shadow_factory_;
|
|
|