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

Side by Side Diff: ui/views/controls/button/label_button.h

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: fix cros build Created 3 years, 9 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
OLDNEW
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 UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_
7 7
8 #include <array> 8 #include <array>
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "third_party/skia/include/core/SkColor.h" 14 #include "third_party/skia/include/core/SkColor.h"
15 #include "ui/gfx/image/image_skia.h" 15 #include "ui/gfx/image/image_skia.h"
16 #include "ui/views/controls/button/custom_button.h" 16 #include "ui/views/controls/button/custom_button.h"
17 #include "ui/views/controls/image_view.h" 17 #include "ui/views/controls/image_view.h"
18 #include "ui/views/controls/label.h" 18 #include "ui/views/controls/label.h"
19 #include "ui/views/native_theme_delegate.h" 19 #include "ui/views/native_theme_delegate.h"
20 #include "ui/views/painter.h"
20 21
21 namespace views { 22 namespace views {
22 23
23 class InkDropContainerView; 24 class InkDropContainerView;
24 class LabelButtonBorder; 25 class LabelButtonBorder;
25 class Painter;
26 26
27 // LabelButton is a button with text and an icon, it's not focusable by default. 27 // LabelButton is a button with text and an icon, it's not focusable by default.
28 class VIEWS_EXPORT LabelButton : public CustomButton, 28 class VIEWS_EXPORT LabelButton : public CustomButton,
29 public NativeThemeDelegate { 29 public NativeThemeDelegate {
30 public: 30 public:
31 // The length of the hover fade animation. 31 // The length of the hover fade animation.
32 static const int kHoverAnimationDurationMs; 32 static const int kHoverAnimationDurationMs;
33 33
34 static const char kViewClassName[]; 34 static const char kViewClassName[];
35 35
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 gfx::HorizontalAlignment horizontal_alignment_; 244 gfx::HorizontalAlignment horizontal_alignment_;
245 245
246 std::unique_ptr<Painter> focus_painter_; 246 std::unique_ptr<Painter> focus_painter_;
247 247
248 DISALLOW_COPY_AND_ASSIGN(LabelButton); 248 DISALLOW_COPY_AND_ASSIGN(LabelButton);
249 }; 249 };
250 250
251 } // namespace views 251 } // namespace views
252 252
253 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_ 253 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698