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_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ | 5 #ifndef UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ |
6 #define UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ | 6 #define UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "ui/gfx/native_theme.h" | 10 #include "ui/gfx/native_theme.h" |
11 #include "ui/views/controls/button/custom_button.h" | 11 #include "ui/views/controls/button/custom_button.h" |
12 #include "ui/views/controls/combobox/combobox_listener.h" | 12 #include "ui/views/controls/combobox/combobox_listener.h" |
13 #include "ui/views/examples/example_base.h" | 13 #include "ui/views/examples/example_base.h" |
14 #include "views/native_theme_delegate.h" | 14 #include "ui/views/native_theme_delegate.h" |
15 #include "views/native_theme_painter.h" | 15 #include "ui/views/native_theme_painter.h" |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 class Combobox; | 18 class Combobox; |
19 class NativeThemePainter; | 19 class NativeThemePainter; |
20 | 20 |
21 namespace examples { | 21 namespace examples { |
22 | 22 |
23 // A subclass of button to test native theme rendering. | 23 // A subclass of button to test native theme rendering. |
24 class ExampleNativeThemeButton : public CustomButton, | 24 class ExampleNativeThemeButton : public CustomButton, |
25 public NativeThemeDelegate, | 25 public NativeThemeDelegate, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // The only control in this test. | 82 // The only control in this test. |
83 ExampleNativeThemeButton* button_; | 83 ExampleNativeThemeButton* button_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(NativeThemeButtonExample); | 85 DISALLOW_COPY_AND_ASSIGN(NativeThemeButtonExample); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace examples | 88 } // namespace examples |
89 } // namespace views | 89 } // namespace views |
90 | 90 |
91 #endif // UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ | 91 #endif // UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ |
OLD | NEW |