OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TEXT_BUTTON_H_ | 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ |
6 #define UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ | 6 #define UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
14 #include "third_party/skia/include/core/SkColor.h" | 14 #include "third_party/skia/include/core/SkColor.h" |
15 #include "ui/gfx/font.h" | 15 #include "ui/gfx/font.h" |
| 16 #include "ui/views/border.h" |
16 #include "ui/views/controls/button/custom_button.h" | 17 #include "ui/views/controls/button/custom_button.h" |
17 #include "views/border.h" | 18 #include "ui/views/native_theme_delegate.h" |
18 #include "views/native_theme_delegate.h" | |
19 | 19 |
20 namespace views { | 20 namespace views { |
21 | 21 |
22 //////////////////////////////////////////////////////////////////////////////// | 22 //////////////////////////////////////////////////////////////////////////////// |
23 // | 23 // |
24 // TextButtonBorder | 24 // TextButtonBorder |
25 // | 25 // |
26 // A Border subclass that paints a TextButton's background layer - | 26 // A Border subclass that paints a TextButton's background layer - |
27 // basically the button frame in the hot/pushed states. | 27 // basically the button frame in the hot/pushed states. |
28 // | 28 // |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 // Overridden from TextButton: | 422 // Overridden from TextButton: |
423 virtual void GetExtraParams( | 423 virtual void GetExtraParams( |
424 gfx::NativeTheme::ExtraParams* params) const OVERRIDE; | 424 gfx::NativeTheme::ExtraParams* params) const OVERRIDE; |
425 | 425 |
426 DISALLOW_COPY_AND_ASSIGN(NativeTextButton); | 426 DISALLOW_COPY_AND_ASSIGN(NativeTextButton); |
427 }; | 427 }; |
428 | 428 |
429 } // namespace views | 429 } // namespace views |
430 | 430 |
431 #endif // UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ | 431 #endif // UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ |
OLD | NEW |