Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3095)

Unified Diff: chrome/browser/ui/views/location_bar/location_icon_view.cc

Issue 6539013: views: Do not show up a tooltip when hovering on the magnifying glass on NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_icon_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/location_icon_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_icon_view.cc b/chrome/browser/ui/views/location_bar/location_icon_view.cc
index 0e70a66148173e0d27a914d0d159019aa97ec2bd..66aad674ef187e46acb387170d21ff6b4a04ac69 100644
--- a/chrome/browser/ui/views/location_bar/location_icon_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_icon_view.cc
@@ -27,3 +27,12 @@ void LocationIconView::OnMouseReleased(const views::MouseEvent& event,
bool canceled) {
click_handler_.OnMouseReleased(event, canceled);
}
+
+void LocationIconView::ShowTooltip(bool show) {
+ if (show) {
+ SetTooltipText(UTF16ToWide(l10n_util::GetStringUTF16(
+ IDS_TOOLTIP_LOCATION_ICON)));
+ } else {
+ SetTooltipText(L"");
+ }
+}
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_icon_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698