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

Unified Diff: ash/common/system/tray/tray_popup_utils.cc

Issue 2533053002: Handle view resize for ripple (Closed)
Patch Set: const -> constexpr Created 4 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/common/system/tray/tray_popup_utils.cc
diff --git a/ash/common/system/tray/tray_popup_utils.cc b/ash/common/system/tray/tray_popup_utils.cc
index b5e3deb294380a84caf165b59617c1bbc0a1994d..f1ccb9f7842f38f0ec00e4d4f2b8efcce6e27848 100644
--- a/ash/common/system/tray/tray_popup_utils.cc
+++ b/ash/common/system/tray/tray_popup_utils.cc
@@ -341,9 +341,13 @@ std::unique_ptr<views::InkDropRipple> TrayPopupUtils::CreateInkDropRipple(
}
// Intentional fall through.
case TrayPopupInkDropStyle::INSET_BOUNDS:
- case TrayPopupInkDropStyle::FILL_BOUNDS:
+ case TrayPopupInkDropStyle::FILL_BOUNDS: {
+ const gfx::Insets insets =
+ TrayPopupUtils::GetInkDropInsets(ink_drop_style);
return base::MakeUnique<views::FloodFillInkDropRipple>(
- bounds, center_point, color, kTrayPopupInkDropRippleOpacity);
+ host->size(), insets, center_point, color,
+ kTrayPopupInkDropRippleOpacity);
+ }
}
// Required for some compilers.
NOTREACHED();
« no previous file with comments | « ash/common/system/tray/tray_background_view.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698