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

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: Width from layout 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..22cdf21d357f69f75a71cb36d959328950da69c1 100644
--- a/ui/views/controls/separator.h
+++ b/ui/views/controls/separator.h
@@ -27,6 +27,12 @@ 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_; }
+ void SetSize(int size);
+
// Overridden from View:
gfx::Size GetPreferredSize() const override;
void GetAccessibleState(ui::AXViewState* state) override;
@@ -35,6 +41,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