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 29 matching lines...) Expand all Loading... | |
40 | 40 |
41 protected: | 41 protected: |
42 // AppListItemModelObserver overrides: | 42 // AppListItemModelObserver overrides: |
43 virtual void ItemIconChanged() OVERRIDE; | 43 virtual void ItemIconChanged() OVERRIDE; |
44 virtual void ItemTitleChanged() OVERRIDE; | 44 virtual void ItemTitleChanged() OVERRIDE; |
45 | 45 |
46 // views::View overrides: | 46 // views::View overrides: |
47 virtual std::string GetClassName() const OVERRIDE; | 47 virtual std::string GetClassName() const OVERRIDE; |
48 virtual gfx::Size GetPreferredSize() OVERRIDE; | 48 virtual gfx::Size GetPreferredSize() OVERRIDE; |
49 virtual void Layout() OVERRIDE; | 49 virtual void Layout() OVERRIDE; |
50 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 50 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE; |
Ben Goodger (Google)
2012/03/02 20:35:11
This is the change I wanted you to avoid.
Since y
tfarina
2012/03/02 20:57:21
The forward declaration "class Canvas;" conflicts
| |
51 | 51 |
52 private: | 52 private: |
53 AppListItemModel* model_; | 53 AppListItemModel* model_; |
54 | 54 |
55 views::ImageView* icon_; | 55 views::ImageView* icon_; |
56 views::Label* title_; | 56 views::Label* title_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(AppListItemView); | 58 DISALLOW_COPY_AND_ASSIGN(AppListItemView); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace ash | 61 } // namespace ash |
62 | 62 |
63 #endif // ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ | 63 #endif // ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ |
OLD | NEW |