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

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

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 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
« no previous file with comments | « no previous file | ash/wm/drag_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_details_view.cc
diff --git a/ash/system/tray/tray_details_view.cc b/ash/system/tray/tray_details_view.cc
index 3f154afdf79cbbdd26c406432a929427e0aeaf21..1c4c34a4eb1933640263d967ce08f9b875f7a8de 100644
--- a/ash/system/tray/tray_details_view.cc
+++ b/ash/system/tray/tray_details_view.cc
@@ -65,19 +65,21 @@ class ScrollContentsView : public views::View {
PositionHeaderRows();
}
- void PaintChildren(const ui::PaintContext& context) override {
- views::View::PaintChildren(context);
+ void PaintChildren(const views::PaintInfo& paint_info) override {
+ views::View::PaintChildren(paint_info);
bool did_draw_shadow = false;
// Paint header row separators.
for (auto& header : headers_)
- did_draw_shadow = PaintDelineation(header, context) || did_draw_shadow;
+ did_draw_shadow =
+ PaintDelineation(header, paint_info.context()) || did_draw_shadow;
// Draw a shadow at the top of the viewport when scrolled, but only if a
// header didn't already draw one. Overlap the shadow with the separator
// that's below the header view so we don't get both a separator and a full
// shadow.
if (y() != 0 && !did_draw_shadow)
- DrawShadow(context, gfx::Rect(0, 0, width(), -y() - kSeparatorWidth));
+ DrawShadow(paint_info.context(),
+ gfx::Rect(0, 0, width(), -y() - kSeparatorWidth));
}
void Layout() override {
« no previous file with comments | « no previous file | ash/wm/drag_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698