diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-09 06:40:57 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-09 06:40:57 +0000 |
commit | 64f001a8a74f5d861d9948155c92419f53928e50 (patch) | |
tree | 4f215495257c68c34f8f1bbc4724e35a73be1788 /chrome/browser/gtk/browser_toolbar_gtk.h | |
parent | 253071feeaf010115a8fbe498d1ebd634c2d1626 (diff) | |
download | chromium_src-64f001a8a74f5d861d9948155c92419f53928e50.zip chromium_src-64f001a8a74f5d861d9948155c92419f53928e50.tar.gz chromium_src-64f001a8a74f5d861d9948155c92419f53928e50.tar.bz2 |
Implement stop/go button for Linux.
Refactored code out of CustomDrawButton into CustomDrawButtonBase to be shared with GoButtonGtk.
Replaced the existing non-togglable go button with GoButtonGtk.
Note that tooltip support isn't done yet, as it changes based on the state of the location bar and the go/stop state.
Add a simple test.
Fix some minor lint errors.
BUG=9381
Review URL: http://codereview.chromium.org/62154
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_toolbar_gtk.h')
-rw-r--r-- | chrome/browser/gtk/browser_toolbar_gtk.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/gtk/browser_toolbar_gtk.h b/chrome/browser/gtk/browser_toolbar_gtk.h index 1223061..3f391a7 100644 --- a/chrome/browser/gtk/browser_toolbar_gtk.h +++ b/chrome/browser/gtk/browser_toolbar_gtk.h @@ -18,6 +18,7 @@ class BackForwardMenuModelGtk; class Browser; class CustomContainerButton; class CustomDrawButton; +class GoButtonGtk; class LocationBar; class LocationBarViewGtk; class NineBox; @@ -47,6 +48,8 @@ class BrowserToolbarGtk : public CommandUpdater::CommandObserver, virtual LocationBar* GetLocationBar() const; + GoButtonGtk* GetGoButton() { return go_.get(); } + // Overridden from CommandUpdater::CommandObserver: virtual void EnabledStateChangedForCommand(int id, bool enabled); @@ -130,7 +133,7 @@ class BrowserToolbarGtk : public CommandUpdater::CommandObserver, scoped_ptr<CustomDrawButton> reload_; scoped_ptr<CustomDrawButton> home_; // May be NULL. scoped_ptr<ToolbarStarToggleGtk> star_; - scoped_ptr<CustomDrawButton> go_; + scoped_ptr<GoButtonGtk> go_; scoped_ptr<CustomContainerButton> page_menu_button_, app_menu_button_; // The model that contains the security level, text, icon to display... |