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

Unified Diff: views/controls/button/text_button.h

Issue 6904160: Implement new gray mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review nits Created 9 years, 8 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/gfx/resources/chromeos_scroll_thumb_p.png ('k') | views/controls/button/text_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/text_button.h
diff --git a/views/controls/button/text_button.h b/views/controls/button/text_button.h
index d82bccbfdb9db0f87979fe913698e054215d5029..6f38cfd586b5a496a36313672167256bf0022fd2 100644
--- a/views/controls/button/text_button.h
+++ b/views/controls/button/text_button.h
@@ -160,6 +160,7 @@ class TextButtonBase : public CustomButton, public NativeThemeDelegate {
// inactive. Both possible colors are set in this method, and the
// appropriate one is chosen during Paint.
void SetTextShadowColors(SkColor active_color, SkColor inactive_color);
+ void SetTextShadowOffset(int x, int y);
bool normal_has_border() const { return normal_has_border_; }
void SetNormalHasBorder(bool normal_has_border);
@@ -169,6 +170,9 @@ class TextButtonBase : public CustomButton, public NativeThemeDelegate {
bool show_multiple_icon_states() const { return show_multiple_icon_states_; }
void SetShowMultipleIconStates(bool show_multiple_icon_states);
+ // Clears halo and shadow settings.
+ void ClearEmbellishing();
+
// Paint the button into the specified canvas. If |mode| is |PB_FOR_DRAG|, the
// function paints a drag image representation into the canvas.
enum PaintButtonMode { PB_NORMAL, PB_FOR_DRAG };
@@ -247,6 +251,8 @@ class TextButtonBase : public CustomButton, public NativeThemeDelegate {
SkColor active_text_shadow_color_;
SkColor inactive_text_shadow_color_;
bool has_shadow_;
+ // Space between text and shadow. Defaults to (1,1).
+ gfx::Point shadow_offset_;
// The width of the button will never be larger than this value. A value <= 0
// indicates the width is not constrained.
« no previous file with comments | « ui/gfx/resources/chromeos_scroll_thumb_p.png ('k') | views/controls/button/text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698