| 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 "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 SkColor color() const { return color_; } | 31 SkColor color() const { return color_; } |
| 32 void SetColor(SkColor color); | 32 void SetColor(SkColor color); |
| 33 | 33 |
| 34 int size() const { return size_; } | 34 int size() const { return size_; } |
| 35 // Preferred size of one axis: height for horizontal separator | 35 // Preferred size of one axis: height for horizontal separator |
| 36 // and width for vertical separator | 36 // and width for vertical separator |
| 37 void SetPreferredSize(int size); | 37 void SetPreferredSize(int size); |
| 38 | 38 |
| 39 // Overridden from View: | 39 // Overridden from View: |
| 40 gfx::Size GetPreferredSize() const override; | 40 gfx::Size GetPreferredSize() const override; |
| 41 void GetAccessibleState(ui::AXViewState* state) override; | 41 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 42 void OnPaint(gfx::Canvas* canvas) override; | 42 void OnPaint(gfx::Canvas* canvas) override; |
| 43 const char* GetClassName() const override; | 43 const char* GetClassName() const override; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 const Orientation orientation_; | 46 const Orientation orientation_; |
| 47 SkColor color_; | 47 SkColor color_; |
| 48 int size_; | 48 int size_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(Separator); | 50 DISALLOW_COPY_AND_ASSIGN(Separator); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace views | 53 } // namespace views |
| 54 | 54 |
| 55 #endif // UI_VIEWS_CONTROLS_SEPARATOR_H_ | 55 #endif // UI_VIEWS_CONTROLS_SEPARATOR_H_ |
| OLD | NEW |