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

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

Issue 12310022: More flexibility in BubbleBorder arrow rendering. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Now with more user choice: bool -> enum. Created 7 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
Index: ash/system/tray/tray_background_view.cc
diff --git a/ash/system/tray/tray_background_view.cc b/ash/system/tray/tray_background_view.cc
index f4c29071e48e15ca6d4d5d2ea2e0cf7c747e8aee..7d86d143b12c41d7849cbb5f254a124709fe3b81 100644
--- a/ash/system/tray/tray_background_view.cc
+++ b/ash/system/tray/tray_background_view.cc
@@ -388,7 +388,10 @@ void TrayBackgroundView::UpdateBubbleViewArrow(
bubble_view->GetWidget()->GetNativeView()->GetRootWindow();
ash::internal::ShelfLayoutManager* shelf =
ash::GetRootWindowController(root_window)->shelf();
- bubble_view->SetPaintArrow(shelf->IsVisible());
+ if (shelf->IsVisible())
msw 2013/02/21 07:29:29 nit: move the condition into the call as a ternary
dewittj 2013/02/21 19:13:57 Done.
+ bubble_view->SetArrowPaintType(views::BubbleBorder::PAINT_NORMAL);
+ else
+ bubble_view->SetArrowPaintType(views::BubbleBorder::PAINT_TRANSPARENT);
}
} // namespace internal

Powered by Google App Engine
This is Rietveld 408576698