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

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

Issue 1469733003: system tray ui change for AllowOnlyPolicyNetworksToConnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix shared build 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
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..6a565bac948f455219d15c988348b80caf944723 100644
--- a/ash/system/tray/hover_highlight_view.cc
+++ b/ash/system/tray/hover_highlight_view.cc
@@ -240,4 +240,18 @@ void HoverHighlightView::OnFocus() {
ActionableView::OnFocus();
}
+bool HoverHighlightView::GetTooltipText(const gfx::Point& p,
+ base::string16* tooltip) const {
+ if (tooltip_.length()) {
+ *tooltip = tooltip_;
+ return true;
+ } else {
+ return false;
+ }
+}
+
+void HoverHighlightView::SetTooltipText(const base::string16& tooltip) {
+ tooltip_ = tooltip;
+}
+
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698