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

Unified Diff: ui/views/controls/button/toggle_button.h

Issue 2440723003: Tweaks to ToggleButton details. (Closed)
Patch Set: remove a little more Created 4 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/button/toggle_button.h
diff --git a/ui/views/controls/button/toggle_button.h b/ui/views/controls/button/toggle_button.h
index 2780b9f8af6da59ac7023249d3d99caffd4d574f..7249adc934e47dcfbb45999aa10c2a9d54a43f22 100644
--- a/ui/views/controls/button/toggle_button.h
+++ b/ui/views/controls/button/toggle_button.h
@@ -33,6 +33,8 @@ class VIEWS_EXPORT ToggleButton : public CustomButton {
// Updates position and color of the thumb.
void UpdateThumb();
+ SkColor GetTrackColor(bool is_on) const;
+
// CustomButton:
gfx::Size GetPreferredSize() const override;
const char* GetClassName() const override;
@@ -51,7 +53,7 @@ class VIEWS_EXPORT ToggleButton : public CustomButton {
bool is_on_;
gfx::SlideAnimation slide_animation_;
- std::unique_ptr<ThumbView> thumb_view_;
+ ThumbView* thumb_view_;
DISALLOW_COPY_AND_ASSIGN(ToggleButton);
};

Powered by Google App Engine
This is Rietveld 408576698