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) OVERRIDE; |
82 | 83 |
83 // views::ContextMenuController overrides: | 84 // views::ContextMenuController overrides: |
84 virtual void ShowContextMenuForView(views::View* source, | 85 virtual void ShowContextMenuForView(views::View* source, |
85 const gfx::Point& point) OVERRIDE; | 86 const gfx::Point& point) OVERRIDE; |
86 | 87 |
87 // views::CustomButton overrides: | 88 // views::CustomButton overrides: |
88 virtual void StateChanged() OVERRIDE; | 89 virtual void StateChanged() OVERRIDE; |
89 | 90 |
90 AppListItemModel* model_; | 91 AppListItemModel* model_; |
91 | 92 |
92 AppListModelView* list_model_view_; | 93 AppListModelView* list_model_view_; |
93 views::ImageView* icon_; | 94 views::ImageView* icon_; |
94 DropShadowLabel* title_; | 95 DropShadowLabel* title_; |
95 | 96 |
96 scoped_ptr<views::MenuRunner> context_menu_runner_; | 97 scoped_ptr<views::MenuRunner> context_menu_runner_; |
97 | 98 |
98 gfx::Size icon_size_; | 99 gfx::Size icon_size_; |
99 bool selected_; | 100 bool selected_; |
100 | 101 |
101 scoped_refptr<IconOperation> icon_op_; | 102 scoped_refptr<IconOperation> icon_op_; |
102 base::WeakPtrFactory<AppListItemView> apply_shadow_factory_; | 103 base::WeakPtrFactory<AppListItemView> apply_shadow_factory_; |
103 | 104 |
104 DISALLOW_COPY_AND_ASSIGN(AppListItemView); | 105 DISALLOW_COPY_AND_ASSIGN(AppListItemView); |
105 }; | 106 }; |
106 | 107 |
107 } // namespace ash | 108 } // namespace ash |
108 | 109 |
109 #endif // ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ | 110 #endif // ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ |
OLD | NEW |