Chromium Code Reviews| Index: chrome/browser/ui/views/toolbar/reload_button.h |
| diff --git a/chrome/browser/ui/views/toolbar/reload_button.h b/chrome/browser/ui/views/toolbar/reload_button.h |
| index 4d4208855c16161a7696bdaebd56bed593d9fa8e..5d62163da62bbf7d97be4c9d9d135a39518e51fa 100644 |
| --- a/chrome/browser/ui/views/toolbar/reload_button.h |
| +++ b/chrome/browser/ui/views/toolbar/reload_button.h |
| @@ -8,8 +8,9 @@ |
| #include "base/basictypes.h" |
| #include "base/gtest_prod_util.h" |
| #include "base/timer/timer.h" |
| -#include "chrome/browser/ui/views/toolbar/button_dropdown.h" |
| +#include "chrome/browser/ui/views/toolbar/toolbar_button.h" |
| #include "ui/base/models/simple_menu_model.h" |
| +#include "ui/views/controls/button/button.h" |
| class CommandUpdater; |
| class LocationBarView; |
| @@ -25,7 +26,7 @@ class LocationBarView; |
| // |
| //////////////////////////////////////////////////////////////////////////////// |
| -class ReloadButton : public ButtonDropDown, |
| +class ReloadButton : public ToolbarButton, |
| public views::ButtonListener, |
| public ui::SimpleMenuModel::Delegate { |
| public: |
| @@ -47,22 +48,22 @@ class ReloadButton : public ButtonDropDown, |
| void LoadImages(); |
| - // Overridden from views::View: |
| + // views::View: |
|
Peter Kasting
2013/11/23 00:23:55
Nit: Either in this change or a followup, merge th
Greg Billock
2013/11/25 17:16:30
Done.
|
| virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
| virtual bool GetTooltipText(const gfx::Point& p, |
| string16* tooltip) const OVERRIDE; |
| virtual const char* GetClassName() const OVERRIDE; |
| virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| - // Overridden from views::ButtonDropDown: |
| + // ToolbarButton: |
| virtual bool ShouldShowMenu() OVERRIDE; |
| virtual void ShowDropDownMenu(ui::MenuSourceType source_type) OVERRIDE; |
| - // Overridden from views::ButtonListener: |
| + // views::ButtonListener: |
| virtual void ButtonPressed(views::Button* /* button */, |
| const ui::Event& event) OVERRIDE; |
| - // Overridden from ui::SimpleMenuModel::Delegate: |
| + // ui::SimpleMenuModel::Delegate: |
| virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
| virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; |
| @@ -103,11 +104,6 @@ class ReloadButton : public ButtonDropDown, |
| // Indicates if reload menu is enabled. |
| bool menu_enabled_; |
| - // The parent class's images_ member is used for the current images, |
| - // and this array is used to hold the alternative images. |
| - // We swap between the two when changing mode. |
| - gfx::ImageSkia alternate_images_[STATE_COUNT]; |
| - |
| // TESTING ONLY |
| // True if we should pretend the button is hovered. |
| bool testing_mouse_hovered_; |