diff options
author | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 01:02:54 +0000 |
---|---|---|
committer | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 01:02:54 +0000 |
commit | dbd34f573f6064dd24f813b4985d7d32b4f1c328 (patch) | |
tree | dd798edf10d5da737b623a357f3c496eb89b0f19 /chrome/browser/status_icons | |
parent | d410bc34fb9387c60d0ecc6fc447429df4629d37 (diff) | |
download | chromium_src-dbd34f573f6064dd24f813b4985d7d32b4f1c328.zip chromium_src-dbd34f573f6064dd24f813b4985d7d32b4f1c328.tar.gz chromium_src-dbd34f573f6064dd24f813b4985d7d32b4f1c328.tar.bz2 |
views: Implemet tooltip for status icons on windows.
BUG=38993
TEST=run chrome\Debug\chrome --long-lived-extensions, move mouse through the status icon, see if a tooltip text
appears.
Patch from Thiago Farina <thiago.farina@gmail.com>
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43099
Landed as r43099.
Review URL: http://codereview.chromium.org/1378007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43158 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/status_icons')
-rw-r--r-- | chrome/browser/status_icons/status_tray_manager.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/status_icons/status_tray_manager.cc b/chrome/browser/status_icons/status_tray_manager.cc index 39b6c85..b5465c3 100644 --- a/chrome/browser/status_icons/status_tray_manager.cc +++ b/chrome/browser/status_icons/status_tray_manager.cc @@ -4,6 +4,7 @@ #include "chrome/browser/status_icons/status_tray_manager.h" +#include "app/l10n_util.h" #include "app/resource_bundle.h" #include "base/logging.h" #include "base/string_util.h" @@ -12,6 +13,7 @@ #include "chrome/browser/browser_window.h" #include "chrome/browser/status_icons/status_tray.h" #include "grit/browser_resources.h" +#include "grit/chromium_strings.h" #include "grit/theme_resources.h" StatusTrayManager::StatusTrayManager() { @@ -34,6 +36,7 @@ void StatusTrayManager::Init(Profile* profile) { IDR_STATUS_TRAY_ICON_PRESSED); icon->SetImage(*bitmap); icon->SetPressedImage(*pressed); + icon->SetToolTip(l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); icon->AddObserver(this); } #endif |