diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 23:25:13 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 23:25:13 +0000 |
commit | 48c8fa63122510b2c51c6608a93b30e94192e679 (patch) | |
tree | dc22b80b2f4103d865cbfe47c6f4dc52c8595985 /chrome/browser/views/toolbar_star_toggle.h | |
parent | 9ea0ea99d3a1140a17712a286414d387eddbe8ac (diff) | |
download | chromium_src-48c8fa63122510b2c51c6608a93b30e94192e679.zip chromium_src-48c8fa63122510b2c51c6608a93b30e94192e679.tar.gz chromium_src-48c8fa63122510b2c51c6608a93b30e94192e679.tar.bz2 |
Rework the Button API to be saner in preparation for NativeControl rejiggering.BaseButton->Button, CustomButtonButton->ImageButtonToggleButton->ToggleImageButtonRemoving SetListener (buttons take listener through ctor)Tidy up source files. No functionality changes, just naming and organization.Look at the button classes first, then everything else.
Review URL: http://codereview.chromium.org/46096
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/toolbar_star_toggle.h')
-rw-r--r-- | chrome/browser/views/toolbar_star_toggle.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/views/toolbar_star_toggle.h b/chrome/browser/views/toolbar_star_toggle.h index a794bb9..8b8d766 100644 --- a/chrome/browser/views/toolbar_star_toggle.h +++ b/chrome/browser/views/toolbar_star_toggle.h @@ -7,7 +7,7 @@ #include "base/time.h" #include "chrome/browser/views/info_bubble.h" -#include "chrome/views/button.h" +#include "chrome/views/image_button.h" class BrowserToolbarView; class GURL; @@ -16,10 +16,10 @@ class GURL; // user to star the current page. ToolbarStarToggle manages showing the // InfoBubble and rendering the appropriate state while the bubble is visible. -class ToolbarStarToggle : public views::ToggleButton, +class ToolbarStarToggle : public views::ToggleImageButton, public InfoBubbleDelegate { public: - explicit ToolbarStarToggle(BrowserToolbarView* host); + ToolbarStarToggle(views::ButtonListener* listener, BrowserToolbarView* host); // If the bubble isn't showing, shows it. void ShowStarBubble(const GURL& url, bool newly_bookmarked); @@ -32,10 +32,10 @@ class ToolbarStarToggle : public views::ToggleButton, virtual void OnMouseReleased(const views::MouseEvent& e, bool canceled); virtual void OnDragDone(); + protected: // Only invokes super if ignore_click_ is true and the bubble isn't showing. virtual void NotifyClick(int mouse_event_flags); - protected: // Overridden to so that we appear pressed while the bubble is showing. virtual SkBitmap GetImageToPaint(); |