summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/button/image_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views/controls/button/image_button.h')
-rw-r--r--ui/views/controls/button/image_button.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/views/controls/button/image_button.h b/ui/views/controls/button/image_button.h
index 215a9ac..e34e176 100644
--- a/ui/views/controls/button/image_button.h
+++ b/ui/views/controls/button/image_button.h
@@ -79,6 +79,10 @@ class VIEWS_EXPORT ImageButton : public CustomButton {
private:
FRIEND_TEST_ALL_PREFIXES(ImageButtonTest, Basics);
+ FRIEND_TEST_ALL_PREFIXES(ImageButtonTest, ImagePositionWithBorder);
+
+ // Returns the correct position of the image for painting.
+ gfx::Point ComputeImagePaintPosition(const gfx::ImageSkia& image);
// Image alignment.
HorizontalAlignment h_alignment_;