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/tabs/tab_strip.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/tabs/tab_strip.h')
-rw-r--r-- | chrome/browser/views/tabs/tab_strip.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/views/tabs/tab_strip.h b/chrome/browser/views/tabs/tab_strip.h index e673507..7ee81149 100644 --- a/chrome/browser/views/tabs/tab_strip.h +++ b/chrome/browser/views/tabs/tab_strip.h @@ -8,7 +8,7 @@ #include "base/gfx/point.h" #include "chrome/browser/tabs/tab_strip_model.h" #include "chrome/browser/views/tabs/tab.h" -#include "chrome/views/button.h" +#include "chrome/views/image_button.h" #include "chrome/views/menu.h" #include "chrome/views/view.h" #include "chrome/views/widget_win.h" @@ -37,7 +37,7 @@ class ImageView; class TabStrip : public views::View, public TabStripModelObserver, public Tab::TabDelegate, - public views::Button::ButtonListener, + public views::ButtonListener, public MessageLoopForUI::Observer { public: TabStrip(TabStripModel* model); @@ -138,8 +138,8 @@ class TabStrip : public views::View, virtual bool EndDrag(bool canceled); virtual bool HasAvailableDragActions() const; - // views::Button::ButtonListener implementation: - virtual void ButtonPressed(views::BaseButton* sender); + // views::ButtonListener implementation: + virtual void ButtonPressed(views::Button* sender); // MessageLoop::Observer implementation: virtual void WillProcessMessage(const MSG& msg); @@ -289,7 +289,7 @@ class TabStrip : public views::View, bool resize_layout_scheduled_; // The "New Tab" button. - views::Button* newtab_button_; + views::ImageButton* newtab_button_; gfx::Size newtab_button_size_; gfx::Size actual_newtab_button_size_; |