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

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

Issue 131513005: linux_aura: Use GTK button borders in GTK theme mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
Index: ui/views/controls/button/label_button.h
diff --git a/ui/views/controls/button/label_button.h b/ui/views/controls/button/label_button.h
index f1bb3d5e178b6f71ebe5be0ece900400687f3690..1951421c2982bb11a96fdaf184d88a1350166e19 100644
--- a/ui/views/controls/button/label_button.h
+++ b/ui/views/controls/button/label_button.h
@@ -16,6 +16,7 @@
namespace views {
+class LabelButtonBorder;
class Painter;
// LabelButton is an alternative to TextButton, it's not focusable by default.
@@ -95,6 +96,11 @@ class VIEWS_EXPORT LabelButton : public CustomButton,
// Updates the image view to contain the appropriate button state image.
void UpdateImage();
+ // Updates our border with a specific LabelButtonBorder instance which has
+ // different insets, etc. This may wrap the border in an object which will
+ // draw a native style border.
+ void UpdateThemedBorder(LabelButtonBorder* label_button_border);
+
// NativeThemeDelegate:
virtual gfx::Rect GetThemePaintRect() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698