diff options
author | glotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-13 12:32:02 +0000 |
---|---|---|
committer | glotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-13 12:32:02 +0000 |
commit | d34f59d0a26db8dd33b52927fbfc425711655b32 (patch) | |
tree | 70da46a84b67da6a3af9358f7831b9eb6a3f1b7f /views | |
parent | fdcf1be8a11acd9060fc3db1947dd1d78b568d9d (diff) | |
download | chromium_src-d34f59d0a26db8dd33b52927fbfc425711655b32.zip chromium_src-d34f59d0a26db8dd33b52927fbfc425711655b32.tar.gz chromium_src-d34f59d0a26db8dd33b52927fbfc425711655b32.tar.bz2 |
Adding style notion to the TextButton.
Welcome screen uses different style of buttons.
BUG=chromium-os:8468
TEST=none
Review URL: http://codereview.chromium.org/4402001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66061 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/button/menu_button.cc | 2 | ||||
-rw-r--r-- | views/controls/button/menu_button.h | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/views/controls/button/menu_button.cc b/views/controls/button/menu_button.cc index e7f7f1b..1b94359 100644 --- a/views/controls/button/menu_button.cc +++ b/views/controls/button/menu_button.cc @@ -54,7 +54,7 @@ MenuButton::MenuButton(ButtonListener* listener, menu_delegate_(menu_delegate), show_menu_marker_(show_menu_marker), menu_marker_(ResourceBundle::GetSharedInstance().GetBitmapNamed( - IDR_MENU_DROPARROW)), + IDR_MENU_DROPARROW)), destroyed_flag_(NULL) { set_alignment(TextButton::ALIGN_LEFT); } diff --git a/views/controls/button/menu_button.h b/views/controls/button/menu_button.h index 72f8fb6..1e78a9c 100644 --- a/views/controls/button/menu_button.h +++ b/views/controls/button/menu_button.h @@ -31,8 +31,7 @@ class MenuButton : public TextButton { // The menu button's class name. static const char kViewClassName[]; - // - // Create a Button + // Create a Button. MenuButton(ButtonListener* listener, const std::wstring& text, ViewMenuDelegate* menu_delegate, @@ -51,7 +50,7 @@ class MenuButton : public TextButton { virtual void Paint(gfx::Canvas* canvas, bool for_drag); // These methods are overriden to implement a simple push button - // behavior + // behavior. virtual bool OnMousePressed(const MouseEvent& e); virtual void OnMouseReleased(const MouseEvent& e, bool canceled); virtual void OnMouseExited(const MouseEvent& event); |