| 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_CONTROLS_SEPARATOR_H_ | 5 #ifndef UI_VIEWS_CONTROLS_SEPARATOR_H_ |
| 6 #define UI_VIEWS_CONTROLS_SEPARATOR_H_ | 6 #define UI_VIEWS_CONTROLS_SEPARATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 VERTICAL | 21 VERTICAL |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 // The separator's class name. | 24 // The separator's class name. |
| 25 static const char kViewClassName[]; | 25 static const char kViewClassName[]; |
| 26 | 26 |
| 27 explicit Separator(Orientation orientation); | 27 explicit Separator(Orientation orientation); |
| 28 virtual ~Separator(); | 28 virtual ~Separator(); |
| 29 | 29 |
| 30 // Overridden from View: | 30 // Overridden from View: |
| 31 virtual gfx::Size GetPreferredSize() OVERRIDE; | 31 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 32 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; | 32 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; |
| 33 virtual void Paint(gfx::Canvas* canvas, | 33 virtual void Paint(gfx::Canvas* canvas, |
| 34 const views::CullSet& cull_set) OVERRIDE; | 34 const views::CullSet& cull_set) OVERRIDE; |
| 35 virtual const char* GetClassName() const OVERRIDE; | 35 virtual const char* GetClassName() const OVERRIDE; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 const Orientation orientation_; | 38 const Orientation orientation_; |
| 39 | 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(Separator); | 40 DISALLOW_COPY_AND_ASSIGN(Separator); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // namespace views | 43 } // namespace views |
| 44 | 44 |
| 45 #endif // UI_VIEWS_CONTROLS_SEPARATOR_H_ | 45 #endif // UI_VIEWS_CONTROLS_SEPARATOR_H_ |
| OLD | NEW |