Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: ui/app_list/views/tile_item_view.h

Issue 2680643002: Add old_state parameter to CustomButton::StateChanged (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/app_list/views/tile_item_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/app_list/views/tile_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698