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 ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ | 5 #ifndef ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ |
6 #define ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ | 6 #define ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/app_list/app_list_item_model_observer.h" | 9 #include "ash/app_list/app_list_item_model_observer.h" |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // AppListItemModelObserver overrides: | 72 // AppListItemModelObserver overrides: |
73 virtual void ItemIconChanged() OVERRIDE; | 73 virtual void ItemIconChanged() OVERRIDE; |
74 virtual void ItemTitleChanged() OVERRIDE; | 74 virtual void ItemTitleChanged() OVERRIDE; |
75 virtual void ItemHighlightedChanged() OVERRIDE; | 75 virtual void ItemHighlightedChanged() OVERRIDE; |
76 | 76 |
77 // views::View overrides: | 77 // views::View overrides: |
78 virtual std::string GetClassName() const OVERRIDE; | 78 virtual std::string GetClassName() const OVERRIDE; |
79 virtual gfx::Size GetPreferredSize() OVERRIDE; | 79 virtual gfx::Size GetPreferredSize() OVERRIDE; |
80 virtual void Layout() OVERRIDE; | 80 virtual void Layout() OVERRIDE; |
81 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 81 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
82 virtual void GetAccessibleState(ui::AccessibleViewState* state); | |
83 | 82 |
84 // views::ContextMenuController overrides: | 83 // views::ContextMenuController overrides: |
85 virtual void ShowContextMenuForView(views::View* source, | 84 virtual void ShowContextMenuForView(views::View* source, |
86 const gfx::Point& point) OVERRIDE; | 85 const gfx::Point& point) OVERRIDE; |
87 | 86 |
88 // views::CustomButton overrides: | 87 // views::CustomButton overrides: |
89 virtual void StateChanged() OVERRIDE; | 88 virtual void StateChanged() OVERRIDE; |
90 | 89 |
91 AppListItemModel* model_; | 90 AppListItemModel* model_; |
92 | 91 |
93 AppListModelView* list_model_view_; | 92 AppListModelView* list_model_view_; |
94 views::ImageView* icon_; | 93 views::ImageView* icon_; |
95 DropShadowLabel* title_; | 94 DropShadowLabel* title_; |
96 | 95 |
97 scoped_ptr<views::MenuRunner> context_menu_runner_; | 96 scoped_ptr<views::MenuRunner> context_menu_runner_; |
98 | 97 |
99 gfx::Size icon_size_; | 98 gfx::Size icon_size_; |
100 bool selected_; | 99 bool selected_; |
101 | 100 |
102 scoped_refptr<IconOperation> icon_op_; | 101 scoped_refptr<IconOperation> icon_op_; |
103 base::WeakPtrFactory<AppListItemView> apply_shadow_factory_; | 102 base::WeakPtrFactory<AppListItemView> apply_shadow_factory_; |
104 | 103 |
105 DISALLOW_COPY_AND_ASSIGN(AppListItemView); | 104 DISALLOW_COPY_AND_ASSIGN(AppListItemView); |
106 }; | 105 }; |
107 | 106 |
108 } // namespace ash | 107 } // namespace ash |
109 | 108 |
110 #endif // ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ | 109 #endif // ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ |
OLD | NEW |