diff options
Diffstat (limited to 'chrome/browser/views/go_button.h')
-rw-r--r-- | chrome/browser/views/go_button.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/views/go_button.h b/chrome/browser/views/go_button.h index c9d8252..a830191 100644 --- a/chrome/browser/views/go_button.h +++ b/chrome/browser/views/go_button.h @@ -8,7 +8,7 @@ #include "chrome/views/controls/button/image_button.h" #include "base/task.h" -class CommandUpdater; +class Browser; class LocationBarView; //////////////////////////////////////////////////////////////////////////////// @@ -26,9 +26,7 @@ class LocationBarView; class GoButton : public views::ToggleImageButton, public views::ButtonListener { public: - // TODO(beng): get rid of the command updater param and instead have a - // delegate. - GoButton(LocationBarView* location_bar, CommandUpdater* command_updater); + GoButton(LocationBarView* location_bar, Browser* Browser); virtual ~GoButton(); typedef enum Mode { MODE_GO = 0, MODE_STOP }; @@ -42,7 +40,7 @@ class GoButton : public views::ToggleImageButton, // Overridden from views::ButtonListener: virtual void ButtonPressed(views::Button* button); - + // Overridden from views::View: virtual void OnMouseExited(const views::MouseEvent& e); virtual bool GetTooltipText(int x, int y, std::wstring* tooltip); @@ -54,7 +52,7 @@ class GoButton : public views::ToggleImageButton, ScopedRunnableMethodFactory<GoButton> stop_timer_; LocationBarView* location_bar_; - CommandUpdater* command_updater_; + Browser* browser_; // The mode we should be in Mode intended_mode_; |