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

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

Issue 15061006: views: Switch Checkbox over to LabelButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm dcheck Created 7 years, 7 months 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
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | ui/views/controls/button/label_button_border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/label_button_border.h
diff --git a/ui/views/controls/button/label_button_border.h b/ui/views/controls/button/label_button_border.h
index ce23bd9364c34e1a2dbff9124a4b1e99e821fb66..048d07416c426b26fefc8e52c3384ee0aa7d5604 100644
--- a/ui/views/controls/button/label_button_border.h
+++ b/ui/views/controls/button/label_button_border.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "ui/gfx/insets.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/painter.h"
@@ -26,6 +27,8 @@ class VIEWS_EXPORT LabelButtonBorder : public Border {
virtual void Paint(const View& view, gfx::Canvas* canvas) OVERRIDE;
virtual gfx::Insets GetInsets() const OVERRIDE;
+ void set_insets(const gfx::Insets& insets) { insets_ = insets; }
+
// Get or set the painter used for the specified |focused| button |state|.
// LabelButtonBorder takes and retains ownership of |painter|.
Painter* GetPainter(bool focused, Button::ButtonState state);
@@ -38,6 +41,8 @@ class VIEWS_EXPORT LabelButtonBorder : public Border {
// The button style supplied in part by this border.
Button::ButtonStyle style_;
+ gfx::Insets insets_;
+
DISALLOW_COPY_AND_ASSIGN(LabelButtonBorder);
};
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | ui/views/controls/button/label_button_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698