| Index: chrome/browser/chromeos/status/feedback_menu_button.cc
|
| ===================================================================
|
| --- chrome/browser/chromeos/status/feedback_menu_button.cc (revision 63751)
|
| +++ chrome/browser/chromeos/status/feedback_menu_button.cc (working copy)
|
| @@ -24,31 +24,14 @@
|
| host_(host) {
|
| DCHECK(host_);
|
| SetTooltipText(l10n_util::GetString(IDS_STATUSBAR_FEEDBACK_TOOLTIP));
|
| + SetIcon(*ResourceBundle::GetSharedInstance().
|
| + GetBitmapNamed(IDR_STATUSBAR_FEEDBACK));
|
| }
|
|
|
| FeedbackMenuButton::~FeedbackMenuButton() {
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| -// FeedbackMenuButton, StatusAreaButton implementation:
|
| -
|
| -void FeedbackMenuButton::DrawPressed(gfx::Canvas* canvas) {
|
| - DrawFeedbackIcon(canvas, *ResourceBundle::GetSharedInstance().
|
| - GetBitmapNamed(IDR_STATUSBAR_FEEDBACK_PRESSED));
|
| -}
|
| -
|
| -void FeedbackMenuButton::DrawIcon(gfx::Canvas* canvas) {
|
| - DrawFeedbackIcon(canvas, *ResourceBundle::GetSharedInstance().
|
| - GetBitmapNamed(IDR_STATUSBAR_FEEDBACK));
|
| -}
|
| -
|
| -void FeedbackMenuButton::DrawFeedbackIcon(gfx::Canvas* canvas, SkBitmap icon) {
|
| - // Draw the battery icon 5 pixels down to center it.
|
| - static const int kIconVerticalPadding = 5;
|
| - canvas->DrawBitmapInt(icon, 0, kIconVerticalPadding);
|
| -}
|
| -
|
| -////////////////////////////////////////////////////////////////////////////////
|
| // PowerMenuButton, views::ViewMenuDelegate implementation:
|
|
|
| void FeedbackMenuButton::RunMenu(views::View* source, const gfx::Point& pt) {
|
|
|