| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(ButtonState old_state) 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 const char* GetClassName() const override; |
| 56 | 57 |
| 57 // Overridden from ImageShadowAnimator::Delegate: | 58 // Overridden from ImageShadowAnimator::Delegate: |
| 58 void ImageShadowAnimationProgressed(ImageShadowAnimator* animator) override; | 59 void ImageShadowAnimationProgressed(ImageShadowAnimator* animator) override; |
| 59 | 60 |
| 60 protected: | 61 protected: |
| 61 void SetIcon(const gfx::ImageSkia& icon); | 62 void SetIcon(const gfx::ImageSkia& icon); |
| 62 | 63 |
| 63 void SetTitle(const base::string16& title); | 64 void SetTitle(const base::string16& title); |
| 64 | 65 |
| 65 private: | 66 private: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 77 views::Label* title_; // Owned by views hierarchy. | 78 views::Label* title_; // Owned by views hierarchy. |
| 78 | 79 |
| 79 bool selected_; | 80 bool selected_; |
| 80 | 81 |
| 81 DISALLOW_COPY_AND_ASSIGN(TileItemView); | 82 DISALLOW_COPY_AND_ASSIGN(TileItemView); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace app_list | 85 } // namespace app_list |
| 85 | 86 |
| 86 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ | 87 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ |
| OLD | NEW |