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