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

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

Issue 980943005: Add ash UI for third-party VPNs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@f_2_407541_434711_remove_combined_name
Patch Set: Created 5 years, 9 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
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 cc2c5840c3028b876f21b0c376d37644ba733f38..884de5659b55662f8644ade78830d9c3580ef9da 100644
--- a/ash/system/tray/hover_highlight_view.cc
+++ b/ash/system/tray/hover_highlight_view.cc
@@ -197,6 +197,10 @@ void HoverHighlightView::OnGestureEvent(ui::GestureEvent* event) {
ActionableView::OnGestureEvent(event);
}
+void HoverHighlightView::OnBoundsChanged(const gfx::Rect& previous_bounds) {
+ SetHoverHighlight(IsMouseHovered());
+}
+
void HoverHighlightView::OnEnabledChanged() {
for (int i = 0; i < child_count(); ++i)
child_at(i)->SetEnabled(enabled());

Powered by Google App Engine
This is Rietveld 408576698