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 #include "ui/views/controls/button/label_button.h" | 5 #include "ui/views/controls/button/label_button.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "build/build_config.h" |
11 #include "ui/gfx/animation/throb_animation.h" | 14 #include "ui/gfx/animation/throb_animation.h" |
12 #include "ui/gfx/canvas.h" | 15 #include "ui/gfx/canvas.h" |
13 #include "ui/gfx/color_utils.h" | 16 #include "ui/gfx/color_utils.h" |
14 #include "ui/gfx/font_list.h" | 17 #include "ui/gfx/font_list.h" |
15 #include "ui/gfx/geometry/vector2d.h" | 18 #include "ui/gfx/geometry/vector2d.h" |
16 #include "ui/native_theme/native_theme.h" | 19 #include "ui/native_theme/native_theme.h" |
17 #include "ui/views/background.h" | 20 #include "ui/views/background.h" |
18 #include "ui/views/controls/button/label_button_border.h" | 21 #include "ui/views/controls/button/label_button_border.h" |
19 #include "ui/views/painter.h" | 22 #include "ui/views/painter.h" |
20 #include "ui/views/style/platform_style.h" | 23 #include "ui/views/style/platform_style.h" |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 GetExtraParams(params); | 515 GetExtraParams(params); |
513 return ui::NativeTheme::kHovered; | 516 return ui::NativeTheme::kHovered; |
514 } | 517 } |
515 | 518 |
516 void LabelButton::ResetCachedPreferredSize() { | 519 void LabelButton::ResetCachedPreferredSize() { |
517 cached_preferred_size_valid_ = false; | 520 cached_preferred_size_valid_ = false; |
518 cached_preferred_size_ = gfx::Size(); | 521 cached_preferred_size_ = gfx::Size(); |
519 } | 522 } |
520 | 523 |
521 } // namespace views | 524 } // namespace views |
OLD | NEW |