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 VIEWS_CONTROLS_SEPARATOR_H_ | 5 #ifndef VIEWS_CONTROLS_SEPARATOR_H_ |
6 #define VIEWS_CONTROLS_SEPARATOR_H_ | 6 #define VIEWS_CONTROLS_SEPARATOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "views/view.h" | 11 #include "views/view.h" |
12 | 12 |
13 namespace views { | 13 namespace views { |
14 | 14 |
15 // The Separator class is a view that shows a line used to visually separate | 15 // The Separator class is a view that shows a line used to visually separate |
16 // other views. The current implementation is only horizontal. | 16 // other views. The current implementation is only horizontal. |
17 | 17 |
18 class VIEWS_API Separator : public View { | 18 class VIEWS_EXPORT Separator : public View { |
19 public: | 19 public: |
20 // The separator's class name. | 20 // The separator's class name. |
21 static const char kViewClassName[]; | 21 static const char kViewClassName[]; |
22 | 22 |
23 Separator(); | 23 Separator(); |
24 virtual ~Separator(); | 24 virtual ~Separator(); |
25 | 25 |
26 // Overridden from View: | 26 // Overridden from View: |
27 virtual gfx::Size GetPreferredSize() OVERRIDE; | 27 virtual gfx::Size GetPreferredSize() OVERRIDE; |
28 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 28 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
29 virtual void Paint(gfx::Canvas* canvas) OVERRIDE; | 29 virtual void Paint(gfx::Canvas* canvas) OVERRIDE; |
30 virtual std::string GetClassName() const OVERRIDE; | 30 virtual std::string GetClassName() const OVERRIDE; |
31 | 31 |
32 private: | 32 private: |
33 DISALLOW_COPY_AND_ASSIGN(Separator); | 33 DISALLOW_COPY_AND_ASSIGN(Separator); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace views | 36 } // namespace views |
37 | 37 |
38 #endif // VIEWS_CONTROLS_SEPARATOR_H_ | 38 #endif // VIEWS_CONTROLS_SEPARATOR_H_ |
OLD | NEW |