From 48c8fa63122510b2c51c6608a93b30e94192e679 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Mon, 16 Mar 2009 23:25:13 +0000 Subject: 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 --- chrome/views/custom_frame_view.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'chrome/views/custom_frame_view.h') diff --git a/chrome/views/custom_frame_view.h b/chrome/views/custom_frame_view.h index 2a47c73..2edc3f9 100644 --- a/chrome/views/custom_frame_view.h +++ b/chrome/views/custom_frame_view.h @@ -5,7 +5,7 @@ #ifndef CHROME_VIEWS_CUSTOM_FRAME_VIEW_H_ #define CHROME_VIEWS_CUSTOM_FRAME_VIEW_H_ -#include "chrome/views/button.h" +#include "chrome/views/image_button.h" #include "chrome/views/non_client_view.h" #include "chrome/views/window.h" #include "chrome/views/window_resources.h" @@ -29,7 +29,7 @@ namespace views { // //////////////////////////////////////////////////////////////////////////////// class CustomFrameView : public NonClientFrameView, - public BaseButton::ButtonListener { + public ButtonListener { public: explicit CustomFrameView(Window* frame); virtual ~CustomFrameView(); @@ -49,8 +49,8 @@ class CustomFrameView : public NonClientFrameView, virtual void Layout(); virtual gfx::Size GetPreferredSize(); - // BaseButton::ButtonListener implementation: - virtual void ButtonPressed(BaseButton* sender); + // ButtonListener implementation: + virtual void ButtonPressed(Button* sender); private: // Returns the thickness of the border that makes up the window frame edges. @@ -98,11 +98,11 @@ class CustomFrameView : public NonClientFrameView, gfx::Rect title_bounds_; // Window controls. - Button* close_button_; - Button* restore_button_; - Button* maximize_button_; - Button* minimize_button_; - Button* system_menu_button_; // Uses the window icon if visible. + ImageButton* close_button_; + ImageButton* restore_button_; + ImageButton* maximize_button_; + ImageButton* minimize_button_; + ImageButton* system_menu_button_; // Uses the window icon if visible. bool should_show_minmax_buttons_; // The window that owns this view. -- cgit v1.1