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

Unified Diff: ash/system/tray/hover_highlight_view.cc

Issue 1466393002: Support tooltip for HoverHighlightView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « ash/system/tray/hover_highlight_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/hover_highlight_view.cc
diff --git a/ash/system/tray/hover_highlight_view.cc b/ash/system/tray/hover_highlight_view.cc
index 164cb41e3c0c7c07454f048212703a2ac410555a..ee43e715f0ac2a92904b366be1b8a373c3cf4453 100644
--- a/ash/system/tray/hover_highlight_view.cc
+++ b/ash/system/tray/hover_highlight_view.cc
@@ -50,6 +50,14 @@ HoverHighlightView::HoverHighlightView(ViewClickListener* listener)
HoverHighlightView::~HoverHighlightView() {
}
+bool HoverHighlightView::GetTooltipText(const gfx::Point& p,
+ base::string16* tooltip) const {
+ if (tooltip_.empty())
+ return false;
+ *tooltip = tooltip_;
+ return true;
+}
+
void HoverHighlightView::AddIconAndLabel(const gfx::ImageSkia& image,
const base::string16& text,
bool highlight) {
« no previous file with comments | « ash/system/tray/hover_highlight_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698