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

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

Issue 2094553002: MD - Fix coloring of buttons on DL shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compiling is always a plus Created 4 years, 5 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/native_theme/native_theme_dark_aura.cc ('k') | ui/views/controls/button/md_text_button.h » ('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 (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 <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void SetImage(ButtonState for_state, const gfx::ImageSkia& image); 45 void SetImage(ButtonState for_state, const gfx::ImageSkia& image);
46 46
47 // Gets or sets the text shown on the button. 47 // Gets or sets the text shown on the button.
48 const base::string16& GetText() const; 48 const base::string16& GetText() const;
49 void SetText(const base::string16& text); 49 void SetText(const base::string16& text);
50 50
51 // Sets the text color shown for the specified button |for_state| to |color|. 51 // Sets the text color shown for the specified button |for_state| to |color|.
52 void SetTextColor(ButtonState for_state, SkColor color); 52 void SetTextColor(ButtonState for_state, SkColor color);
53 53
54 // Sets the text colors shown for the non-disabled states to |color|. 54 // Sets the text colors shown for the non-disabled states to |color|.
55 void SetEnabledTextColors(SkColor color); 55 virtual void SetEnabledTextColors(SkColor color);
56 56
57 // Sets drop shadows underneath the text. 57 // Sets drop shadows underneath the text.
58 void SetTextShadows(const gfx::ShadowValues& shadows); 58 void SetTextShadows(const gfx::ShadowValues& shadows);
59 59
60 // Sets whether subpixel rendering is used on the label. 60 // Sets whether subpixel rendering is used on the label.
61 void SetTextSubpixelRenderingEnabled(bool enabled); 61 void SetTextSubpixelRenderingEnabled(bool enabled);
62 62
63 // Gets or sets the font list used by this button. 63 // Gets or sets the font list used by this button.
64 const gfx::FontList& GetFontList() const; 64 const gfx::FontList& GetFontList() const;
65 void SetFontList(const gfx::FontList& font_list); 65 void SetFontList(const gfx::FontList& font_list);
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 gfx::HorizontalAlignment horizontal_alignment_; 229 gfx::HorizontalAlignment horizontal_alignment_;
230 230
231 std::unique_ptr<Painter> focus_painter_; 231 std::unique_ptr<Painter> focus_painter_;
232 232
233 DISALLOW_COPY_AND_ASSIGN(LabelButton); 233 DISALLOW_COPY_AND_ASSIGN(LabelButton);
234 }; 234 };
235 235
236 } // namespace views 236 } // namespace views
237 237
238 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_ 238 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_dark_aura.cc ('k') | ui/views/controls/button/md_text_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698