diff options
Diffstat (limited to 'chrome/browser/views/go_button.h')
-rw-r--r-- | chrome/browser/views/go_button.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/views/go_button.h b/chrome/browser/views/go_button.h index a830191..c9d8252 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 Browser; +class CommandUpdater; class LocationBarView; //////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,9 @@ class LocationBarView; class GoButton : public views::ToggleImageButton, public views::ButtonListener { public: - GoButton(LocationBarView* location_bar, Browser* Browser); + // TODO(beng): get rid of the command updater param and instead have a + // delegate. + GoButton(LocationBarView* location_bar, CommandUpdater* command_updater); virtual ~GoButton(); typedef enum Mode { MODE_GO = 0, MODE_STOP }; @@ -40,7 +42,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); @@ -52,7 +54,7 @@ class GoButton : public views::ToggleImageButton, ScopedRunnableMethodFactory<GoButton> stop_timer_; LocationBarView* location_bar_; - Browser* browser_; + CommandUpdater* command_updater_; // The mode we should be in Mode intended_mode_; |