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

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

Issue 2190453002: Update CrOS logout button for MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix override Created 4 years, 4 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 <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual 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 // TODO(estade): make this function protected.
66 virtual void SetFontList(const gfx::FontList& font_list);
67
68 // Adjusts the font size up or down by the given amount.
69 virtual void AdjustFontSize(int font_size_delta);
66 70
67 // Sets the elide behavior of this button. 71 // Sets the elide behavior of this button.
68 void SetElideBehavior(gfx::ElideBehavior elide_behavior); 72 void SetElideBehavior(gfx::ElideBehavior elide_behavior);
69 73
70 // Sets the horizontal alignment used for the button; reversed in RTL. The 74 // Sets the horizontal alignment used for the button; reversed in RTL. The
71 // optional image will lead the text, unless the button is right-aligned. 75 // optional image will lead the text, unless the button is right-aligned.
72 void SetHorizontalAlignment(gfx::HorizontalAlignment alignment); 76 void SetHorizontalAlignment(gfx::HorizontalAlignment alignment);
73 77
74 // Call SetMinSize(gfx::Size()) to clear the monotonically increasing size. 78 // Call SetMinSize(gfx::Size()) to clear the monotonically increasing size.
75 void SetMinSize(const gfx::Size& min_size); 79 void SetMinSize(const gfx::Size& min_size);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 gfx::HorizontalAlignment horizontal_alignment_; 234 gfx::HorizontalAlignment horizontal_alignment_;
231 235
232 std::unique_ptr<Painter> focus_painter_; 236 std::unique_ptr<Painter> focus_painter_;
233 237
234 DISALLOW_COPY_AND_ASSIGN(LabelButton); 238 DISALLOW_COPY_AND_ASSIGN(LabelButton);
235 }; 239 };
236 240
237 } // namespace views 241 } // namespace views
238 242
239 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_ 243 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/session/logout_button_tray.cc ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698