OLD | NEW |
1 // Copyright (c) 2009 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 VIEWS_EXAMPLES_MESSAGE_BOX_EXAMPLE_H_ | 5 #ifndef VIEWS_EXAMPLES_MESSAGE_BOX_EXAMPLE_H_ |
6 #define VIEWS_EXAMPLES_MESSAGE_BOX_EXAMPLE_H_ | 6 #define VIEWS_EXAMPLES_MESSAGE_BOX_EXAMPLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "views/controls/button/text_button.h" | 11 #include "views/controls/button/text_button.h" |
12 #include "views/controls/message_box_view.h" | 12 #include "views/controls/message_box_view.h" |
13 #include "views/controls/tabbed_pane/tabbed_pane.h" | 13 #include "views/controls/tabbed_pane/tabbed_pane.h" |
14 #include "views/examples/example_base.h" | 14 #include "views/examples/example_base.h" |
15 #include "views/grid_layout.h" | 15 #include "views/layout/grid_layout.h" |
16 | 16 |
17 namespace examples { | 17 namespace examples { |
18 | 18 |
19 // A MessageBoxView example. This tests some of checkbox features as well. | 19 // A MessageBoxView example. This tests some of checkbox features as well. |
20 class MessageBoxExample : public ExampleBase, | 20 class MessageBoxExample : public ExampleBase, |
21 public views::ButtonListener { | 21 public views::ButtonListener { |
22 public: | 22 public: |
23 explicit MessageBoxExample(ExamplesMain* main) : ExampleBase(main) {} | 23 explicit MessageBoxExample(ExamplesMain* main) : ExampleBase(main) {} |
24 | 24 |
25 virtual ~MessageBoxExample() {} | 25 virtual ~MessageBoxExample() {} |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // message box. | 80 // message box. |
81 views::Button* status_, *toggle_; | 81 views::Button* status_, *toggle_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(MessageBoxExample); | 83 DISALLOW_COPY_AND_ASSIGN(MessageBoxExample); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace examples | 86 } // namespace examples |
87 | 87 |
88 #endif // VIEWS_EXAMPLES_MESSAGE_BOX_EXAMPLE_H_ | 88 #endif // VIEWS_EXAMPLES_MESSAGE_BOX_EXAMPLE_H_ |
89 | 89 |
OLD | NEW |