diff options
author | chocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 23:43:16 +0000 |
---|---|---|
committer | chocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 23:43:16 +0000 |
commit | 90342a74214caedb3f9063375ab153563afb81fe (patch) | |
tree | d5c67d03ecdb87ddec31236fd216df53039f5e52 /chrome/browser/chromeos/status/power_menu_button.h | |
parent | 25edef40e0b04e7537d6a876eeba312c3d1ebb78 (diff) | |
download | chromium_src-90342a74214caedb3f9063375ab153563afb81fe.zip chromium_src-90342a74214caedb3f9063375ab153563afb81fe.tar.gz chromium_src-90342a74214caedb3f9063375ab153563afb81fe.tar.bz2 |
Add test for power_menu_button.
BUG=none
TEST=power_menu_button_browsertest
Review URL: http://codereview.chromium.org/1338003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42695 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/status/power_menu_button.h')
-rw-r--r-- | chrome/browser/chromeos/status/power_menu_button.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/status/power_menu_button.h b/chrome/browser/chromeos/status/power_menu_button.h index 0a0c98d..8cff5f1 100644 --- a/chrome/browser/chromeos/status/power_menu_button.h +++ b/chrome/browser/chromeos/status/power_menu_button.h @@ -46,6 +46,8 @@ class PowerMenuButton : public StatusAreaButton, // PowerLibrary::Observer implementation. virtual void PowerChanged(PowerLibrary* obj); + const int icon_id() const { return icon_id_; } + protected: // StatusAreaButton implementation. virtual void DrawPressed(gfx::Canvas* canvas); @@ -67,6 +69,9 @@ class PowerMenuButton : public StatusAreaButton, // The power menu. views::Menu2 power_menu_; + // The currently showing icon bitmap id. + int icon_id_; + DISALLOW_COPY_AND_ASSIGN(PowerMenuButton); }; |