summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_action.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 22:36:24 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 22:36:24 +0000
commitdeb87c8535c2a5bd04152b6f2d2540c5c00bb9f3 (patch)
tree57245451d98b2dc2d22b9457b6bceec175fb8c6f /chrome/common/extensions/extension_action.h
parent694c0ca50612fc4e2d44ceb210beb9c5a9ad26e1 (diff)
downloadchromium_src-deb87c8535c2a5bd04152b6f2d2540c5c00bb9f3.zip
chromium_src-deb87c8535c2a5bd04152b6f2d2540c5c00bb9f3.tar.gz
chromium_src-deb87c8535c2a5bd04152b6f2d2540c5c00bb9f3.tar.bz2
Pull a BrowserActionView out of BrowserActionContainer. Also
rename the button to BrowserActionButton. This should make adding animation to the badge easier. Review URL: http://codereview.chromium.org/268002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28330 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_action.h')
-rw-r--r--chrome/common/extensions/extension_action.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/common/extensions/extension_action.h b/chrome/common/extensions/extension_action.h
index 31f256f..74c22d9 100644
--- a/chrome/common/extensions/extension_action.h
+++ b/chrome/common/extensions/extension_action.h
@@ -91,7 +91,7 @@ class ExtensionActionState {
public:
ExtensionActionState(std::string title, int icon_index)
: title_(title), icon_index_(icon_index),
- badge_background_color_(new SkColor(SkColorSetARGB(255, 218, 0, 24))) {
+ badge_background_color_(SkColorSetARGB(255, 218, 0, 24)) {
}
const std::string& title() const { return title_; }
@@ -102,11 +102,11 @@ class ExtensionActionState {
badge_text_ = badge_text;
}
- SkColor* badge_background_color() const {
- return badge_background_color_.get();
+ SkColor badge_background_color() const {
+ return badge_background_color_;
}
- void set_badge_background_color(const SkColor& badge_background_color) {
- badge_background_color_.reset(new SkColor(badge_background_color));
+ void set_badge_background_color(SkColor badge_background_color) {
+ badge_background_color_ = badge_background_color;
}
int icon_index() const { return icon_index_; }
@@ -129,7 +129,7 @@ class ExtensionActionState {
std::string badge_text_;
// The background color for the badge.
- scoped_ptr<SkColor> badge_background_color_;
+ SkColor badge_background_color_;
DISALLOW_COPY_AND_ASSIGN(ExtensionActionState);
};