| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // Sets the font list used by this button. | 122 // Sets the font list used by this button. |
| 123 virtual void SetFontList(const gfx::FontList& font_list); | 123 virtual void SetFontList(const gfx::FontList& font_list); |
| 124 | 124 |
| 125 // View: | 125 // View: |
| 126 void OnPaint(gfx::Canvas* canvas) override; | 126 void OnPaint(gfx::Canvas* canvas) override; |
| 127 void OnFocus() override; | 127 void OnFocus() override; |
| 128 void OnBlur() override; | 128 void OnBlur() override; |
| 129 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 129 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
| 130 | 130 |
| 131 // CustomButton: | 131 // CustomButton: |
| 132 void StateChanged() override; | 132 void StateChanged(ButtonState old_state) override; |
| 133 | 133 |
| 134 // Fills |params| with information about the button. | 134 // Fills |params| with information about the button. |
| 135 virtual void GetExtraParams(ui::NativeTheme::ExtraParams* params) const; | 135 virtual void GetExtraParams(ui::NativeTheme::ExtraParams* params) const; |
| 136 | 136 |
| 137 // Resets colors from the NativeTheme, explicitly set colors are unchanged. | 137 // Resets colors from the NativeTheme, explicitly set colors are unchanged. |
| 138 virtual void ResetColorsFromNativeTheme(); | 138 virtual void ResetColorsFromNativeTheme(); |
| 139 | 139 |
| 140 // Changes the visual styling of this button to reflect the state of | 140 // Changes the visual styling of this button to reflect the state of |
| 141 // |is_default()|. | 141 // |is_default()|. |
| 142 virtual void UpdateStyleToIndicateDefaultStatus(); | 142 virtual void UpdateStyleToIndicateDefaultStatus(); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |