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

Unified Diff: chrome/browser/ui/views/download/download_item_view.cc

Issue 8909002: views: Convert IsEnabled() to just enabled() since it's just a simple accessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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: chrome/browser/ui/views/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index c37cc915edbedfe1cde8178ec36406bd83fe7d2a..7cf72d03ec78b359d0465db6b1c7bbccfc795588 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -830,8 +830,8 @@ void DownloadItemView::OnPaint(gfx::Canvas* canvas) {
// Draw the file's name.
canvas->DrawStringInt(filename, font_,
- IsEnabled() ? file_name_color :
- kFileNameDisabledColor,
+ enabled() ? file_name_color
+ : kFileNameDisabledColor,
mirrored_x, y, kTextWidth, font_.GetHeight());
}
@@ -883,7 +883,7 @@ void DownloadItemView::OnPaint(gfx::Canvas* canvas) {
icon_y = download_util::kSmallProgressIconOffset;
}
icon_x = GetMirroredXWithWidthInView(icon_x, icon->width());
- if (IsEnabled()) {
+ if (enabled()) {
canvas->DrawBitmapInt(*icon, icon_x, icon_y);
} else {
// Use an alpha to make the image look disabled.
« no previous file with comments | « chrome/browser/chromeos/setting_level_bubble_browsertest.cc ('k') | chrome/browser/ui/views/reload_button_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698