OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_VIEWS_TILE_ITEM_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 // Informs the TileItemView of its parent's background color. The controls | 43 // Informs the TileItemView of its parent's background color. The controls |
44 // within the TileItemView will adapt to suit the given color. | 44 // within the TileItemView will adapt to suit the given color. |
45 void SetParentBackgroundColor(SkColor color); | 45 void SetParentBackgroundColor(SkColor color); |
46 SkColor parent_background_color() { return parent_background_color_; } | 46 SkColor parent_background_color() { return parent_background_color_; } |
47 | 47 |
48 // Sets the behavior of the tile item on mouse hover. | 48 // Sets the behavior of the tile item on mouse hover. |
49 void SetHoverStyle(HoverStyle hover_style); | 49 void SetHoverStyle(HoverStyle hover_style); |
50 | 50 |
51 // Overridden from views::CustomButton: | 51 // Overridden from views::CustomButton: |
52 void StateChanged() override; | 52 void StateChanged(ButtonState old_state) override; |
53 | 53 |
54 // Overridden from views::View: | 54 // Overridden from views::View: |
55 void Layout() override; | 55 void Layout() override; |
56 | 56 |
57 // Overridden from ImageShadowAnimator::Delegate: | 57 // Overridden from ImageShadowAnimator::Delegate: |
58 void ImageShadowAnimationProgressed(ImageShadowAnimator* animator) override; | 58 void ImageShadowAnimationProgressed(ImageShadowAnimator* animator) override; |
59 | 59 |
60 protected: | 60 protected: |
61 void SetIcon(const gfx::ImageSkia& icon); | 61 void SetIcon(const gfx::ImageSkia& icon); |
62 | 62 |
(...skipping 14 matching lines...) Expand all Loading... |
77 views::Label* title_; // Owned by views hierarchy. | 77 views::Label* title_; // Owned by views hierarchy. |
78 | 78 |
79 bool selected_; | 79 bool selected_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(TileItemView); | 81 DISALLOW_COPY_AND_ASSIGN(TileItemView); |
82 }; | 82 }; |
83 | 83 |
84 } // namespace app_list | 84 } // namespace app_list |
85 | 85 |
86 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ | 86 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ |
OLD | NEW |