| OLD | NEW |
| 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 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // Sets the text colors shown for the non-disabled states to |color|. | 51 // Sets the text colors shown for the non-disabled states to |color|. |
| 52 virtual void SetEnabledTextColors(SkColor color); | 52 virtual void SetEnabledTextColors(SkColor color); |
| 53 | 53 |
| 54 // Sets drop shadows underneath the text. | 54 // Sets drop shadows underneath the text. |
| 55 void SetTextShadows(const gfx::ShadowValues& shadows); | 55 void SetTextShadows(const gfx::ShadowValues& shadows); |
| 56 | 56 |
| 57 // Sets whether subpixel rendering is used on the label. | 57 // Sets whether subpixel rendering is used on the label. |
| 58 void SetTextSubpixelRenderingEnabled(bool enabled); | 58 void SetTextSubpixelRenderingEnabled(bool enabled); |
| 59 | 59 |
| 60 // TODO(estade): remove. See crbug.com/633986 | |
| 61 void SetFontListDeprecated(const gfx::FontList& font_list); | |
| 62 | |
| 63 // Adjusts the font size up or down by the given amount. | 60 // Adjusts the font size up or down by the given amount. |
| 64 virtual void AdjustFontSize(int font_size_delta); | 61 virtual void AdjustFontSize(int font_size_delta); |
| 65 | 62 |
| 66 // Sets the elide behavior of this button. | 63 // Sets the elide behavior of this button. |
| 67 void SetElideBehavior(gfx::ElideBehavior elide_behavior); | 64 void SetElideBehavior(gfx::ElideBehavior elide_behavior); |
| 68 | 65 |
| 69 // Sets the horizontal alignment used for the button; reversed in RTL. The | 66 // Sets the horizontal alignment used for the button; reversed in RTL. The |
| 70 // optional image will lead the text, unless the button is right-aligned. | 67 // optional image will lead the text, unless the button is right-aligned. |
| 71 void SetHorizontalAlignment(gfx::HorizontalAlignment alignment); | 68 void SetHorizontalAlignment(gfx::HorizontalAlignment alignment); |
| 72 | 69 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 gfx::HorizontalAlignment horizontal_alignment_; | 241 gfx::HorizontalAlignment horizontal_alignment_; |
| 245 | 242 |
| 246 std::unique_ptr<Painter> focus_painter_; | 243 std::unique_ptr<Painter> focus_painter_; |
| 247 | 244 |
| 248 DISALLOW_COPY_AND_ASSIGN(LabelButton); | 245 DISALLOW_COPY_AND_ASSIGN(LabelButton); |
| 249 }; | 246 }; |
| 250 | 247 |
| 251 } // namespace views | 248 } // namespace views |
| 252 | 249 |
| 253 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_ | 250 #endif // UI_VIEWS_CONTROLS_BUTTON_LABEL_BUTTON_H_ |
| OLD | NEW |