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/clock_menu_button.cc | |
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/clock_menu_button.cc')
-rw-r--r-- | chrome/browser/chromeos/status/clock_menu_button.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/status/clock_menu_button.cc b/chrome/browser/chromeos/status/clock_menu_button.cc index 434f323..f63593f 100644 --- a/chrome/browser/chromeos/status/clock_menu_button.cc +++ b/chrome/browser/chromeos/status/clock_menu_button.cc @@ -70,7 +70,9 @@ void ClockMenuButton::UpdateTextAndSetNextTimer() { } void ClockMenuButton::UpdateText() { - SetText(base::TimeFormatTimeOfDay(base::Time::Now())); + base::Time time(base::Time::Now()); + SetText(base::TimeFormatTimeOfDay(time)); + SetTooltipText(base::TimeFormatShortDate(time)); SchedulePaint(); } |