| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_APP_LIST_ITEM_VIEW_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_ITEM_VIEW_H_ |
| 6 #define UI_APP_LIST_APP_LIST_ITEM_VIEW_H_ | 6 #define UI_APP_LIST_APP_LIST_ITEM_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual void Layout() OVERRIDE; | 68 virtual void Layout() OVERRIDE; |
| 69 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 69 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 70 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 70 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 71 | 71 |
| 72 // views::ContextMenuController overrides: | 72 // views::ContextMenuController overrides: |
| 73 virtual void ShowContextMenuForView(views::View* source, | 73 virtual void ShowContextMenuForView(views::View* source, |
| 74 const gfx::Point& point) OVERRIDE; | 74 const gfx::Point& point) OVERRIDE; |
| 75 | 75 |
| 76 // views::CustomButton overrides: | 76 // views::CustomButton overrides: |
| 77 virtual void StateChanged() OVERRIDE; | 77 virtual void StateChanged() OVERRIDE; |
| 78 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE; |
| 78 | 79 |
| 79 AppListItemModel* model_; // Owned by AppListModel::Apps. | 80 AppListItemModel* model_; // Owned by AppListModel::Apps. |
| 80 | 81 |
| 81 AppsGridView* apps_grid_view_; // Owned by views hierarchy. | 82 AppsGridView* apps_grid_view_; // Owned by views hierarchy. |
| 82 views::ImageView* icon_; // Owned by views hierarchy. | 83 views::ImageView* icon_; // Owned by views hierarchy. |
| 83 DropShadowLabel* title_; // Owned by views hierarchy. | 84 DropShadowLabel* title_; // Owned by views hierarchy. |
| 84 | 85 |
| 85 scoped_ptr<views::MenuRunner> context_menu_runner_; | 86 scoped_ptr<views::MenuRunner> context_menu_runner_; |
| 86 | 87 |
| 87 gfx::Size icon_size_; | 88 gfx::Size icon_size_; |
| 88 | 89 |
| 89 scoped_refptr<IconOperation> icon_op_; | 90 scoped_refptr<IconOperation> icon_op_; |
| 90 base::WeakPtrFactory<AppListItemView> apply_shadow_factory_; | 91 base::WeakPtrFactory<AppListItemView> apply_shadow_factory_; |
| 91 gfx::ShadowValues icon_shadows_; | 92 gfx::ShadowValues icon_shadows_; |
| 92 | 93 |
| 93 DISALLOW_COPY_AND_ASSIGN(AppListItemView); | 94 DISALLOW_COPY_AND_ASSIGN(AppListItemView); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace app_list | 97 } // namespace app_list |
| 97 | 98 |
| 98 #endif // UI_APP_LIST_APP_LIST_ITEM_VIEW_H_ | 99 #endif // UI_APP_LIST_APP_LIST_ITEM_VIEW_H_ |
| OLD | NEW |