diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 19:29:29 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 19:29:29 +0000 |
commit | 7c658c35425254826a6f1f7aaa3a2ec1e9b250b0 (patch) | |
tree | cb9cf07241c6be7060a5985e2b88ee0dd2220716 /chrome/browser/chromeos/status/power_menu_button.h | |
parent | 29d0b3ee7ecc0d573b52ec73a6c8820a7508101e (diff) | |
download | chromium_src-7c658c35425254826a6f1f7aaa3a2ec1e9b250b0.zip chromium_src-7c658c35425254826a6f1f7aaa3a2ec1e9b250b0.tar.gz chromium_src-7c658c35425254826a6f1f7aaa3a2ec1e9b250b0.tar.bz2 |
Added tooltips to stats bar items.
BUG=chromium-os:5601 (http://code.google.com/p/chromium-os/issues/detail?id=5601)
TEST=Check that hover text over status bar icons seems reasonable. Test different states of network (disconnected, ethernet, connecting to a wifi network, connected to a wifi network) and battery (plugged in, unplugged).
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57234
Review URL: http://codereview.chromium.org/3158014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58526 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 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/status/power_menu_button.h b/chrome/browser/chromeos/status/power_menu_button.h index 7cc5520..abf758a 100644 --- a/chrome/browser/chromeos/status/power_menu_button.h +++ b/chrome/browser/chromeos/status/power_menu_button.h @@ -12,6 +12,10 @@ #include "views/controls/menu/menu_2.h" #include "views/controls/menu/view_menu_delegate.h" +namespace base { +class TimeDelta; +} + class SkBitmap; namespace chromeos { @@ -64,8 +68,8 @@ class PowerMenuButton : public StatusAreaButton, // This method will draw the |icon| in the appropriate place on the |canvas|. void DrawPowerIcon(gfx::Canvas* canvas, SkBitmap icon); - // Update the power icon depending on the power status. - void UpdateIcon(); + // Update the power icon and menu label info depending on the power status. + void UpdateIconAndLabelInfo(); // The number of power images. static const int kNumPowerImages; @@ -73,6 +77,14 @@ class PowerMenuButton : public StatusAreaButton, // The power menu. views::Menu2 power_menu_; + // Stored data gathered CrosLibrary::PowerLibrary. + bool battery_is_present_; + bool line_power_on_; + bool battery_fully_charged_; + double battery_percentage_; + base::TimeDelta battery_time_to_full_; + base::TimeDelta battery_time_to_empty_; + // The currently showing icon bitmap id. int icon_id_; |