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
3 // found in the LICENSE file.
5 #ifndef UI_VIEWS_CONTROLS_SEPARATOR_H_
6 #define UI_VIEWS_CONTROLS_SEPARATOR_H_
10 #include "ui/views/view.h"
14 // The Separator class is a view that shows a line used to visually separate
17 class VIEWS_EXPORT Separator : public View {
24 // The separator's class name.
25 static const char kViewClassName[];
27 explicit Separator(Orientation orientation);
28 ~Separator() override;
30 // Overridden from View:
31 gfx::Size GetPreferredSize() const override;
32 void GetAccessibleState(ui::AXViewState* state) override;
33 void Paint(gfx::Canvas* canvas, const views::CullSet& cull_set) override;
34 const char* GetClassName() const override;
37 const Orientation orientation_;
39 DISALLOW_COPY_AND_ASSIGN(Separator);
44 #endif // UI_VIEWS_CONTROLS_SEPARATOR_H_