Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1089)

Unified Diff: ui/views/controls/separator.h

Issue 736613002: Makes Separator more configurable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetPrefferedize and then SetSize of separator Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/separator.h
diff --git a/ui/views/controls/separator.h b/ui/views/controls/separator.h
index 39004baf378e41b7c839d7199cb4da9fb8d37430..d30e01b99b20c5a90d2cd6116ae37256ca6b8549 100644
--- a/ui/views/controls/separator.h
+++ b/ui/views/controls/separator.h
@@ -27,6 +27,14 @@ class VIEWS_EXPORT Separator : public View {
explicit Separator(Orientation orientation);
~Separator() override;
+ SkColor color() const { return color_; }
+ void SetColor(SkColor color);
+
+ int size() const { return size_; }
+ // Preferred size of one axis: height for horizontal separator
sky 2014/11/19 20:29:02 How about: "Sets the preferred size of the mino ax
+ // and width for vertical separator
+ void SetPreferredSize(int size);
+
// Overridden from View:
gfx::Size GetPreferredSize() const override;
void GetAccessibleState(ui::AXViewState* state) override;
@@ -35,6 +43,8 @@ class VIEWS_EXPORT Separator : public View {
private:
const Orientation orientation_;
+ SkColor color_;
+ int size_;
DISALLOW_COPY_AND_ASSIGN(Separator);
};

Powered by Google App Engine
This is Rietveld 408576698