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

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

Issue 10824359: Remove ImageSkia::empty and ImageSkia::extractSubset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/image_button_unittest.cc ('k') | ui/views/controls/image_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/text_button.h
diff --git a/ui/views/controls/button/text_button.h b/ui/views/controls/button/text_button.h
index 9b59da302c2c9df9a3c5c11559f278605faab339..99feea600be6cbe837583bb2b5144bc9f16ae8e7 100644
--- a/ui/views/controls/button/text_button.h
+++ b/ui/views/controls/button/text_button.h
@@ -323,7 +323,7 @@ class VIEWS_EXPORT TextButton : public TextButtonBase {
virtual void SetHoverIcon(const gfx::ImageSkia& icon);
virtual void SetPushedIcon(const gfx::ImageSkia& icon);
- bool HasIcon() const { return !icon_.empty(); }
+ bool HasIcon() const { return !icon_.isNull(); }
// Meanings are reversed for right-to-left layouts.
enum IconPlacement {
« no previous file with comments | « ui/views/controls/button/image_button_unittest.cc ('k') | ui/views/controls/image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698