Chromium Code Reviews| Index: ui/views/controls/button/blue_button.h |
| diff --git a/ui/views/controls/button/blue_button.h b/ui/views/controls/button/blue_button.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..16151b30dbb7cc04f26e2e7d9e46d151753cb372 |
| --- /dev/null |
| +++ b/ui/views/controls/button/blue_button.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_VIEWS_CONTROLS_BUTTON_BLUE_BUTTON_H_ |
| +#define UI_VIEWS_CONTROLS_BUTTON_BLUE_BUTTON_H_ |
| + |
| +#include <string> |
|
tfarina
2013/05/24 16:17:51
remove, unused.
benwells
2013/05/27 06:53:59
Done.
|
| + |
| +#include "base/compiler_specific.h" |
| +#include "base/string16.h" |
| +#include "ui/views/controls/button/label_button.h" |
| + |
| +namespace views { |
| + |
| +// A native themed class representing a blue button. |
|
msw
2013/05/24 16:14:28
native themed? I'm not sure what you mean.
tfarina
2013/05/24 16:17:51
looks like copied-paste typo. Because it is asset
benwells
2013/05/27 06:53:59
Oops fixed.
benwells
2013/05/27 06:53:59
Comment updated.
|
| +class VIEWS_EXPORT BlueButton : public LabelButton { |
| + public: |
| + static const char kViewClassName[]; |
| + |
| + explicit BlueButton(ButtonListener* listener, const string16& text); |
|
tfarina
2013/05/24 16:17:51
no explicit
tfarina
2013/05/24 16:17:51
base::string16
benwells
2013/05/27 06:53:59
Done.
benwells
2013/05/27 06:53:59
Done.
|
| + virtual ~BlueButton(); |
| + |
| + protected: |
| + // Overridden from LabelButton: |
| + virtual const char* GetClassName() const OVERRIDE; |
|
tfarina
2013/05/24 16:17:51
does this needs to be protected?
benwells
2013/05/27 06:53:59
Made private.
|
| + |
| + private: |
| + virtual const ui::Animation* GetThemeAnimation() const OVERRIDE; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(BlueButton); |
| +}; |
| + |
| +} // namespace views |
| + |
| +#endif // UI_VIEWS_CONTROLS_BUTTON_BLUE_BUTTON_H_ |